mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 08:53:08 +01:00
end tooltip timeout and display for relevant leave notify events
This commit is contained in:
parent
df5a188825
commit
2a53154892
1 changed files with 11 additions and 0 deletions
|
|
@ -890,6 +890,17 @@ GtkCanvas::on_enter_notify_event (GdkEventCrossing* ev)
|
|||
bool
|
||||
GtkCanvas::on_leave_notify_event (GdkEventCrossing* ev)
|
||||
{
|
||||
switch (ev->detail) {
|
||||
case GDK_NOTIFY_ANCESTOR:
|
||||
case GDK_NOTIFY_UNKNOWN:
|
||||
case GDK_NOTIFY_VIRTUAL:
|
||||
case GDK_NOTIFY_NONLINEAR:
|
||||
case GDK_NOTIFY_NONLINEAR_VIRTUAL:
|
||||
/* leaving window, cancel any tooltips */
|
||||
stop_tooltip_timeout ();
|
||||
hide_tooltip ();
|
||||
break;
|
||||
}
|
||||
_new_current_item = 0;
|
||||
deliver_enter_leave (Duple (ev->x, ev->y), ev->state);
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue