[mutter/wip/garnacho/virtual-input-device: 91/94] clutter/evdev: Unset the current stage from the main seat when it vanishes



commit 96fea045bd604b2285b2f6bf18b241df9e49484a
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Jul 20 17:58:08 2016 +0200

    clutter/evdev: Unset the current stage from the main seat when it vanishes

 .../clutter/evdev/clutter-device-manager-evdev.c   |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter/evdev/clutter-device-manager-evdev.c 
b/clutter/clutter/evdev/clutter-device-manager-evdev.c
index 546d68e..9d364ef 100644
--- a/clutter/clutter/evdev/clutter-device-manager-evdev.c
+++ b/clutter/clutter/evdev/clutter-device-manager-evdev.c
@@ -1963,6 +1963,8 @@ clutter_device_manager_evdev_stage_removed_cb (ClutterStageManager *manager,
   ClutterDeviceManagerEvdevPrivate *priv = self->priv;
   GSList *l;
 
+  clutter_seat_evdev_set_stage (priv->main_seat, NULL);
+
   /* Remove the stage of any input devices that were pointing to this
      stage so we don't send events to invalid stages */
   for (l = priv->seats; l; l = l->next)


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