From 2d225a3386689affe5cbe7840e78ebd2849acd0d Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 8 May 2014 14:16:35 -0400 Subject: [PATCH] events: Don't check if we have the grab to raise / focus a window It isn't necessary. As an X11 compositor, we'll only see the event if we have the grab on the window, anyway. This was causing issues moving windows as a Wayland compositor. --- src/core/events.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/core/events.c b/src/core/events.c index 385dd9298..2a60e8c06 100644 --- a/src/core/events.c +++ b/src/core/events.c @@ -1958,9 +1958,7 @@ meta_display_handle_event (MetaDisplay *display, * grab on the window, or because we're a wayland * compositor and thus we see all the events, so we * need to check if the event is interesting. - * We want an event that is not modified, for a window - * that has (or would have, the wayland case) the - * button grab active. + * We want an event that is not modified for a window. * * We may have other events on the window, for example * a click on a frame button, but that's not for us to @@ -1969,7 +1967,7 @@ meta_display_handle_event (MetaDisplay *display, unmodified = (event->button.modifier_state & grab_mask) == 0; fully_modified = grab_mask && (event->button.modifier_state & grab_mask) == grab_mask; - if (unmodified && window && window->have_focus_click_grab) + if (unmodified && window) { if (meta_prefs_get_raise_on_click ()) meta_window_raise (window);