[gtk+/touch-for-3.4: 55/65] gdk: Use the last alive grab in order to get the event window
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/touch-for-3.4: 55/65] gdk: Use the last alive grab in order to get the event window
- Date: Fri, 24 Feb 2012 15:29:27 +0000 (UTC)
commit 0a535fe44156420acae1c14e0f62929218f4f329
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 9d8f347..3077bc1 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -9136,7 +9136,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]