[mutter] x11: fix enter/leave events for frames
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] x11: fix enter/leave events for frames
- Date: Sat, 12 Apr 2014 01:16:29 +0000 (UTC)
commit c55f64fdf240ee8b776ae40caef1692ac9cb0f65
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Sat Apr 12 03:10:33 2014 +0200
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 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/core/events.c b/src/core/events.c
index 3cc5488..d013d56 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]