diff options
author | William Hua <william.hua@canonical.com> | 2015-10-27 16:19:42 -0400 |
---|---|---|
committer | William Hua <william.hua@canonical.com> | 2015-10-27 16:37:21 -0400 |
commit | 1760ada1ff4ae8115eddfc40cc472518f5a6580a (patch) | |
tree | d61384f321377721965e75a15df8a14aad6839b2 /gdk/mir/gdkmireventsource.c | |
parent | e3ddbc544cef0570b9f6a46e1ad7bec275c99881 (diff) | |
download | gtk+-1760ada1ff4ae8115eddfc40cc472518f5a6580a.tar.gz |
mir: emulate pointer for all touch events
Diffstat (limited to 'gdk/mir/gdkmireventsource.c')
-rw-r--r-- | gdk/mir/gdkmireventsource.c | 2 |
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); } |