summaryrefslogtreecommitdiff
path: root/gdk/mir/gdkmireventsource.c
diff options
context:
space:
mode:
authorWilliam Hua <william.hua@canonical.com>2015-10-27 16:19:42 -0400
committerWilliam Hua <william.hua@canonical.com>2015-10-27 16:37:21 -0400
commit1760ada1ff4ae8115eddfc40cc472518f5a6580a (patch)
treed61384f321377721965e75a15df8a14aad6839b2 /gdk/mir/gdkmireventsource.c
parente3ddbc544cef0570b9f6a46e1ad7bec275c99881 (diff)
downloadgtk+-1760ada1ff4ae8115eddfc40cc472518f5a6580a.tar.gz
mir: emulate pointer for all touch events
Diffstat (limited to 'gdk/mir/gdkmireventsource.c')
-rw-r--r--gdk/mir/gdkmireventsource.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk/mir/gdkmireventsource.c b/gdk/mir/gdkmireventsource.c
index fe9fc70607..9275e6a74f 100644
--- a/gdk/mir/gdkmireventsource.c
+++ b/gdk/mir/gdkmireventsource.c
@@ -330,6 +330,8 @@ handle_touch_event (GdkWindow *window,
gdk_event->touch.y = mir_touch_event_axis_value (mir_touch_event, i, mir_touch_axis_y);
gdk_event->touch.x_root = mir_touch_event_axis_value (mir_touch_event, i, mir_touch_axis_x);
gdk_event->touch.y_root = mir_touch_event_axis_value (mir_touch_event, i, mir_touch_axis_y);
+ gdk_event->touch.emulating_pointer = TRUE;
+ _gdk_event_set_pointer_emulated (gdk_event, TRUE);
send_event (window, get_pointer (window), gdk_event);
}