pixfader: don't change drawing state (prelight) just because a leave event arrives IF we are dragging
git-svn-id: svn://localhost/ardour2/branches/3.0@13633 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
737e40a56f
commit
3edf3a9817
@ -305,6 +305,11 @@ PixFader::on_button_release_event (GdkEventButton* ev)
|
||||
remove_modal_grab();
|
||||
dragging = false;
|
||||
|
||||
if (!_hovering) {
|
||||
Keyboard::magic_widget_drop_focus();
|
||||
queue_draw ();
|
||||
}
|
||||
|
||||
if (ev_pos == grab_start) {
|
||||
|
||||
/* no motion - just a click */
|
||||
@ -499,9 +504,11 @@ PixFader::on_enter_notify_event (GdkEventCrossing*)
|
||||
bool
|
||||
PixFader::on_leave_notify_event (GdkEventCrossing*)
|
||||
{
|
||||
_hovering = false;
|
||||
Keyboard::magic_widget_drop_focus();
|
||||
queue_draw ();
|
||||
if (!dragging) {
|
||||
_hovering = false;
|
||||
Keyboard::magic_widget_drop_focus();
|
||||
queue_draw ();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user