[mutter] events: Don't check if we have the grab to raise / focus a window
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] events: Don't check if we have the grab to raise / focus a window
- Date: Thu, 8 May 2014 18:19:45 +0000 (UTC)
commit 2d225a3386689affe5cbe7840e78ebd2849acd0d
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu May 8 14:16:35 2014 -0400
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 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/core/events.c b/src/core/events.c
index 385dd92..2a60e8c 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]