mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 13:45:43 +01:00
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
1 changed files with 10 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue