summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-04-26 18:22:25 +0200
committerBastien Nocera <hadess@hadess.net>2013-04-26 18:23:40 +0200
commit9b64df88b855cb501d97987ced99ba879f8824cd (patch)
tree18f270204ddc6b1eca67671b4f415ab5c277d1aa
parent6b1093d903f4605dcb974a3b299ed47f3e15edc1 (diff)
downloadclutter-gtk-9b64df88b855cb501d97987ced99ba879f8824cd.tar.gz
embed: Receive touch and smooth scroll eventsclutter-gtk-1.4
Otherwise all the clicks from touchscreens will appear as synthetised events coming from the virtual core pointer instead of touch events coming from the touchscreen itself. https://bugzilla.gnome.org/show_bug.cgi?id=698969
-rw-r--r--clutter-gtk/gtk-clutter-embed.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/clutter-gtk/gtk-clutter-embed.c b/clutter-gtk/gtk-clutter-embed.c
index 935bf5a..14d99bf 100644
--- a/clutter-gtk/gtk-clutter-embed.c
+++ b/clutter-gtk/gtk-clutter-embed.c
@@ -309,7 +309,9 @@ gtk_clutter_embed_realize (GtkWidget *widget)
| GDK_KEY_RELEASE_MASK
| GDK_POINTER_MOTION_MASK
| GDK_ENTER_NOTIFY_MASK
- | GDK_LEAVE_NOTIFY_MASK;
+ | GDK_LEAVE_NOTIFY_MASK
+ | GDK_TOUCH_MASK
+ | GDK_SMOOTH_SCROLL_MASK;
attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL;