From c55f64fdf240ee8b776ae40caef1692ac9cb0f65 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Sat, 12 Apr 2014 03:10:33 +0200 Subject: [PATCH] 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. --- src/core/events.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/events.c b/src/core/events.c index 3cc548835..d013d5667 100644 --- a/src/core/events.c +++ b/src/core/events.c @@ -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; }