[gtk+/multitouch: 38/40] gdk: Only trigger motion hints machinery on motion events
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/multitouch: 38/40] gdk: Only trigger motion hints machinery on motion events
- Date: Thu, 5 Jan 2012 11:43:55 +0000 (UTC)
commit 12cee9ff53a6ef5d245e3dfdfa97f5da4a436dc4
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Jan 5 01:00:19 2012 +0100
gdk: Only trigger motion hints machinery on motion events
Touch events have no need for it, plus the concept behind
gdk_event_request_motions() doesn't wrap around multiple
touches within a device.
gdk/gdkwindow.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 5ab2d6e..b35bb27 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -9627,6 +9627,7 @@ proxy_pointer_event (GdkDisplay *display,
is_hint = FALSE;
if (event_win &&
+ source_event->type == GDK_MOTION_NOTIFY &&
(evmask & GDK_POINTER_MOTION_HINT_MASK))
{
gulong *device_serial;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]