Blame SOURCES/0001-window-Fix-delayed-mouse-mode-on-X.patch
|
|
68333f |
From 8c4610721a117d5d50fc72fb75e41a6727d93b2d Mon Sep 17 00:00:00 2001
|
|
|
68333f |
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
|
|
|
68333f |
Date: Wed, 7 May 2014 23:22:41 +0200
|
|
|
68333f |
Subject: [PATCH] window: Fix delayed mouse mode on X
|
|
|
68333f |
|
|
|
68333f |
Using meta_stack_get_default_focus_window_at_point() is unreliable
|
|
|
68333f |
when used with the overlay windows or popups. Instead, we can just
|
|
|
68333f |
look up the MetaWindow for the client window that XIQueryPointer
|
|
|
68333f |
returns.
|
|
|
68333f |
|
|
|
68333f |
https://bugzilla.gnome.org/show_bug.cgi?id=730541
|
|
|
68333f |
---
|
|
|
68333f |
src/core/display.c | 12 +-----------
|
|
|
68333f |
1 file changed, 1 insertion(+), 11 deletions(-)
|
|
|
68333f |
|
|
|
68333f |
diff --git a/src/core/display.c b/src/core/display.c
|
|
|
68333f |
index 435d9d9..b7688e6 100644
|
|
|
68333f |
--- a/src/core/display.c
|
|
|
68333f |
+++ b/src/core/display.c
|
|
|
68333f |
@@ -1703,17 +1703,7 @@ window_focus_on_pointer_rest_callback (gpointer data) {
|
|
|
68333f |
return TRUE;
|
|
|
68333f |
}
|
|
|
68333f |
|
|
|
68333f |
- /* Explicitly check for the overlay window, as get_focus_window_at_point()
|
|
|
68333f |
- * may return windows that extend underneath the chrome (like
|
|
|
68333f |
- * override-redirect or DESKTOP windows)
|
|
|
68333f |
- */
|
|
|
68333f |
- if (child == meta_get_overlay_window (screen))
|
|
|
68333f |
- goto out;
|
|
|
68333f |
-
|
|
|
68333f |
- window =
|
|
|
68333f |
- meta_stack_get_default_focus_window_at_point (screen->stack,
|
|
|
68333f |
- screen->active_workspace,
|
|
|
68333f |
- None, root_x, root_y);
|
|
|
68333f |
+ window = meta_display_lookup_x_window (display, child);
|
|
|
68333f |
|
|
|
68333f |
if (window == NULL)
|
|
|
68333f |
goto out;
|
|
|
68333f |
--
|
|
|
68333f |
2.1.0
|
|
|
68333f |
|