Get rid of some unnecessary redrawing.
This commit is contained in:
parent
b6106fc6da
commit
8b92eb9318
2
Region.C
2
Region.C
|
@ -195,7 +195,7 @@ Region::handle ( int m )
|
||||||
else
|
else
|
||||||
_selected = ! _selected;
|
_selected = ! _selected;
|
||||||
|
|
||||||
_track->redraw();
|
redraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = Track_Widget::handle( m );
|
ret = Track_Widget::handle( m );
|
||||||
|
|
|
@ -202,6 +202,7 @@ public:
|
||||||
if ( Fl::event_state() & FL_CTRL &&
|
if ( Fl::event_state() & FL_CTRL &&
|
||||||
Fl::event_button() == 3 )
|
Fl::event_button() == 3 )
|
||||||
{
|
{
|
||||||
|
redraw();
|
||||||
_track->queue_delete( this );
|
_track->queue_delete( this );
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue