1
0
Fork 0

backends: Ensure to clear the last updated device on device removal

If the last updated device is removed, ensure that it does result in
a ::last-device-changed with a NULL device.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1460
This commit is contained in:
Carlos Garnacho 2020-09-25 18:51:37 +02:00
parent 86fa8aff4a
commit 089be8b71d

View file

@ -456,6 +456,9 @@ on_device_removed (ClutterSeat *seat,
!has_touchscreen);
}
}
if (priv->current_device == device)
meta_backend_update_last_device (backend, NULL);
}
static void