[gtk+/multitouch-for-3.4: 87/89] gdk: Use the last alive grab in order to get the event window
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/multitouch-for-3.4: 87/89] gdk: Use the last alive grab in order to get the event window
- Date: Thu, 23 Feb 2012 12:33:14 +0000 (UTC)
commit 6fc723a8914603c8e91de4c26ab9fef1a622a645
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Feb 21 11:27:03 2012 +0100
gdk: Use the last alive grab in order to get the event window
If an active grab kicks in on a different window, _gdk_display_has_device_grab()
would still find the former implicit grab for the window below the pointer, thus
sending events to an unrelated place.
gdk/gdkwindow.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 4f2ca0d..9d21365 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -9135,7 +9135,7 @@ get_event_window (GdkDisplay *display,
GdkTouchGrabInfo *touch_grab;
touch_grab = _gdk_display_has_touch_grab (display, device, touch_id, serial);
- grab = _gdk_display_has_device_grab (display, device, serial);
+ grab = _gdk_display_get_last_device_grab (display, device);
if (touch_grab != NULL &&
(!grab || grab->implicit || touch_grab->serial >= grab->serial_start))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]