diff --git a/src/backends/meta-backend.c b/src/backends/meta-backend.c index 9083a4346..4ebceb4ea 100644 --- a/src/backends/meta-backend.c +++ b/src/backends/meta-backend.c @@ -337,6 +337,8 @@ on_device_removed (ClutterDeviceManager *device_manager, gboolean has_touchscreen, has_pointing_device; ClutterInputDeviceType device_type; + priv->current_device_id = 0; + device_type = clutter_input_device_get_device_type (device); has_touchscreen = check_has_slave_touchscreen (device_manager);