[mutter] window: Don't eat events on O-R windows
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] window: Don't eat events on O-R windows
- Date: Tue, 1 Jul 2014 18:41:44 +0000 (UTC)
commit 02220ed6c76cd0f74a78558e6d9fd3f672ed06a8
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Jul 1 14:39:09 2014 -0400
window: Don't eat events on O-R windows
For XWayland, we need to make sure to send out mouse events on O-R
windows, otherwise they won't get motion or button events.
The comment mentions being eaten for the compositor, but we already
bypass the compositor for all events that have a window. The return
value just controls whether we pass them to Wayland.
src/core/window.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 1c05621..3ecfdcd 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -7786,11 +7786,9 @@ meta_window_handle_ungrabbed_event (MetaWindow *window,
/* Some windows might not ask for input, in which case we might be here
* because we selected for ButtonPress on the root window. In that case,
* we have to take special care not to act for an override-redirect window.
- *
- * Consume the event in this case, though, since we don't want it passed
- * to the compositor or UI. */
+ */
if (window->override_redirect)
- return TRUE;
+ return FALSE;
/* We have three passive button grabs:
* - on any button, without modifiers => focuses and maybe raises the window
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]