From 0dd8b9725ffafe5f69aca2310d57f0aa2a238cf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Tue, 9 Feb 2021 13:50:57 +0100 Subject: [PATCH] totem: fix suspension-as-addition and resumption-as-removal in interface MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ref: https://gitlab.freedesktop.org/libinput/libinput/-/commit/bf4277623f7c24286b9f1e4b3ace51fbb5bb6a98#note_793592 Signed-off-by: Ahelenia ZiemiaƄska --- src/evdev-totem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/evdev-totem.c b/src/evdev-totem.c index bcf180d6..d26fc33d 100644 --- a/src/evdev-totem.c +++ b/src/evdev-totem.c @@ -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,