mirror of
https://github.com/brl/mutter.git
synced 2025-06-14 01:09:30 +00:00
x11: fix enter/leave events for frames
We need to pass all events on frames to GTK, even if we handled them internally, to make sure that the hover state is properly updated.
This commit is contained in:
@ -952,6 +952,10 @@ handle_input_xevent (MetaDisplay *display,
|
||||
break;
|
||||
}
|
||||
|
||||
/* Don't eat events for GTK frames (we need to update the :hover state on buttons) */
|
||||
if (window && window->frame && modified == window->frame->xwindow)
|
||||
return FALSE;
|
||||
|
||||
/* Don't pass these events through to Clutter / GTK+ */
|
||||
return TRUE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user