Improve mouse cursor handling.
This commit is contained in:
parent
c97a15047c
commit
01a1e5846c
|
@ -79,8 +79,13 @@ Audio_Track::handle ( int m )
|
||||||
|
|
||||||
printf( "pasted file \"%s\"\n", file );
|
printf( "pasted file \"%s\"\n", file );
|
||||||
|
|
||||||
|
fl_cursor( FL_CURSOR_WAIT );
|
||||||
|
Fl::check();
|
||||||
|
|
||||||
Audio_File *c = Audio_File::from_file( file );
|
Audio_File *c = Audio_File::from_file( file );
|
||||||
|
|
||||||
|
fl_cursor( FL_CURSOR_DEFAULT );
|
||||||
|
|
||||||
if ( ! c )
|
if ( ! c )
|
||||||
{
|
{
|
||||||
free( file );
|
free( file );
|
||||||
|
|
2
Region.C
2
Region.C
|
@ -225,10 +225,12 @@ Region::handle ( int m )
|
||||||
{
|
{
|
||||||
case FL_ENTER:
|
case FL_ENTER:
|
||||||
_current = true;
|
_current = true;
|
||||||
|
Track_Widget::handle( m );
|
||||||
redraw();
|
redraw();
|
||||||
break;
|
break;
|
||||||
case FL_LEAVE:
|
case FL_LEAVE:
|
||||||
_current = false;
|
_current = false;
|
||||||
|
Track_Widget::handle( m );
|
||||||
redraw();
|
redraw();
|
||||||
break;
|
break;
|
||||||
case FL_PUSH:
|
case FL_PUSH:
|
||||||
|
|
Loading…
Reference in New Issue