From 02220ed6c76cd0f74a78558e6d9fd3f672ed06a8 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Tue, 1 Jul 2014 14:39:09 -0400 Subject: [PATCH] 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 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/core/window.c b/src/core/window.c index 1c05621b7..3ecfdcd70 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