[clutter-gtk] embed: Receive touch and smooth scroll events
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter-gtk] embed: Receive touch and smooth scroll events
- Date: Fri, 10 May 2013 15:53:36 +0000 (UTC)
commit 9b64df88b855cb501d97987ced99ba879f8824cd
Author: Bastien Nocera <hadess hadess net>
Date: Fri Apr 26 18:22:25 2013 +0200
embed: Receive touch and smooth scroll events
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
clutter-gtk/gtk-clutter-embed.c | 4 +++-
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]