[mutter/wip/carlosg/input-thread: 32/133] backend: Use connect-after to perform actions on device removed
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/input-thread: 32/133] backend: Use connect-after to perform actions on device removed
- Date: Thu, 13 Aug 2020 19:31:07 +0000 (UTC)
commit fe1d297680c8df22b789c034eb0fb97d8647a45f
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Wed Jul 15 17:52:37 2020 +0200
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
src/backends/meta-backend.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/backends/meta-backend.c b/src/backends/meta-backend.c
index 7e9f1b4e13..3be3c95aa8 100644
--- a/src/backends/meta-backend.c
+++ b/src/backends/meta-backend.c
@@ -530,7 +530,8 @@ meta_backend_real_post_init (MetaBackend *backend)
g_signal_connect_object (seat, "device-added",
G_CALLBACK (on_device_added), backend, 0);
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]