totem: fix suspension-as-addition and resumption-as-removal in interface
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Tue, 9 Feb 2021 12:50:57 +0000 (13:50 +0100)
committerнаб <nabijaczleweli@nabijaczleweli.xyz>
Tue, 9 Feb 2021 12:50:57 +0000 (13:50 +0100)
Ref: https://gitlab.freedesktop.org/libinput/libinput/-/commit/bf4277623f7c24286b9f1e4b3ace51fbb5bb6a98#note_793592
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
src/evdev-totem.c

index bcf180d6b3fcd3a33e238603f9923d6a98ed5278..d26fc33d6dbbf70ea1f06709e9ed72c454e13961 100644 (file)
@@ -705,8 +705,8 @@ struct evdev_dispatch_interface totem_interface = {
        .destroy = totem_interface_destroy,
        .device_added = totem_interface_device_added,
        .device_removed = totem_interface_device_removed,
-       .device_suspended = totem_interface_device_added, /* treat as remove */
-       .device_resumed = totem_interface_device_removed, /* treat as add */
+       .device_suspended = totem_interface_device_removed, /* treat as remove */
+       .device_resumed = totem_interface_device_added, /* treat as add */
        .post_added = totem_interface_initial_proximity,
        .touch_arbitration_toggle = NULL,
        .touch_arbitration_update_rect = NULL,