totem: fix suspension-as-addition and resumption-as-removal in interface

Ref: bf4277623f (note_793592)
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
This commit is contained in:
наб 2021-02-09 13:50:57 +01:00
parent 9f594664d9
commit 0dd8b9725f
No known key found for this signature in database
GPG key ID: BCFD0B018D2658F1

View 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,