From a7ea54bd7df2bd7a830d71ef4f037385f9ae282b Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 8 May 2014 15:06:52 -0400 Subject: [PATCH] events: Swallow all events directly on windows This is how the X11 mode works. --- src/core/events.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/core/events.c b/src/core/events.c index 77c4b1938..28adfe729 100644 --- a/src/core/events.c +++ b/src/core/events.c @@ -1936,6 +1936,9 @@ meta_display_handle_event (MetaDisplay *display, if (g_getenv ("MUTTER_DEBUG_BUTTON_GRABS")) grab_mask |= CLUTTER_CONTROL_MASK; + /* Swallow all events on windows that come our way. */ + bypass_clutter = TRUE; + /* We have three passive button grabs: * - on any button, without modifiers => focuses and maybe raises the window * - on resize button, with modifiers => start an interactive resizing @@ -1994,8 +1997,6 @@ meta_display_handle_event (MetaDisplay *display, XIReplayDevice, event->button.time); } } - - bypass_clutter = TRUE; } else if (fully_modified && (int) event->button.button == meta_prefs_get_mouse_button_resize ()) { @@ -2045,7 +2046,6 @@ meta_display_handle_event (MetaDisplay *display, event->button.x, event->button.y); } - bypass_clutter = TRUE; bypass_wayland = TRUE; } else if (fully_modified && (int) event->button.button == meta_prefs_get_mouse_button_menu ()) @@ -2057,7 +2057,6 @@ meta_display_handle_event (MetaDisplay *display, event->button.y, event->button.button, event->any.time); - bypass_clutter = TRUE; bypass_wayland = TRUE; } else if (fully_modified && (int) event->button.button == 1) @@ -2076,7 +2075,6 @@ meta_display_handle_event (MetaDisplay *display, event->button.x, event->button.y); } - bypass_clutter = TRUE; bypass_wayland = TRUE; } }