]> Pileus Git - ~andy/gtk/commit
gdk: Listen to touch events by default on the native window
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 5 Jan 2012 00:04:15 +0000 (01:04 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 1 Mar 2012 21:25:26 +0000 (16:25 -0500)
commit6efe1167152718b3ce4bd4d0c0c7cc9b8879f6b8
tree2d63ec58c2c2e7353c2b86001bba2105e608a3a1
parent0a80c26cdf4a21f6299888e28ff8bad6c733f4f6
gdk: Listen to touch events by default on the native window

GDK will only receive touch events when dealing with a multitouch
device, so these must be transformed to pointer events if the
client-side window receiving the event doesn't listen to touch
events, and the touch sequence the event is from does emulate
the pointer.

If a sequence emulates pointer events, it will result in a
button-press, N motions with GDK_BUTTON1_MASK set and a
button-release event, and it will deliver crossing events
as specified by the current device grab.
gdk/gdkwindow.c