[mutter] wayland: Cancel touches on meta_wayland_touch_disable()



commit 2abee91dbcd68870791337dfd1c7c96636fb805f
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Oct 14 14:15:32 2016 +0200

    wayland: Cancel touches on meta_wayland_touch_disable()
    
    When disabling the device/capability, we can't rely on cancelled events
    being emitted timely, because the capability will be already disabled by
    then, all touches must be cancelled immediately then.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=772929

 src/wayland/meta-wayland-touch.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/wayland/meta-wayland-touch.c b/src/wayland/meta-wayland-touch.c
index 221ba9b..6593d7c 100644
--- a/src/wayland/meta-wayland-touch.c
+++ b/src/wayland/meta-wayland-touch.c
@@ -541,6 +541,8 @@ meta_wayland_touch_disable (MetaWaylandTouch *touch)
     clutter_evdev_remove_filter (evdev_filter_func, touch);
 #endif
 
+  meta_wayland_touch_cancel (touch);
+
   g_clear_pointer (&touch->touch_surfaces, (GDestroyNotify) g_hash_table_unref);
   g_clear_pointer (&touch->touches, (GDestroyNotify) g_hash_table_unref);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]