mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
backend: Use connect-after to perform actions on device removed
When a device is removed we perform some actions such as stopping the "::last-device-changed" signal emission and unsetting the current device. And we want to be sure that these actions happen after all the device-removed operations are sorted out. Related to: https://gitlab.gnome.org/GNOME/mutter/-/issues/1345 https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1371
This commit is contained in:
parent
0756826753
commit
5730b998fd
@ -530,7 +530,8 @@ meta_backend_real_post_init (MetaBackend *backend)
|
|||||||
g_signal_connect_object (seat, "device-added",
|
g_signal_connect_object (seat, "device-added",
|
||||||
G_CALLBACK (on_device_added), backend, 0);
|
G_CALLBACK (on_device_added), backend, 0);
|
||||||
g_signal_connect_object (seat, "device-removed",
|
g_signal_connect_object (seat, "device-removed",
|
||||||
G_CALLBACK (on_device_removed), backend, 0);
|
G_CALLBACK (on_device_removed), backend,
|
||||||
|
G_CONNECT_AFTER);
|
||||||
|
|
||||||
set_initial_pointer_visibility (backend, seat);
|
set_initial_pointer_visibility (backend, seat);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user