Improve mouse cursor handling.

This commit is contained in:
Jonathan Moore Liles 2008-03-06 12:46:40 -06:00
parent c97a15047c
commit 01a1e5846c
2 changed files with 7 additions and 0 deletions

View File

@ -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 );

View File

@ -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: