[gtk+] 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+] gdk: Use the last alive grab in order to get the event window
- Date: Thu, 1 Mar 2012 21:32:25 +0000 (UTC)
commit 3880b12196dd28df570098d9d6f5207d8014f7f8
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Mar 1 10:44:10 2012 -0500
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 63a645a..3478502 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -9147,7 +9147,7 @@ get_event_window (GdkDisplay *display,
GdkTouchGrabInfo *touch_grab;
touch_grab = _gdk_display_has_touch_grab (display, device, sequence, 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]