From 4ae305f19e391edda1aab0f9a9c47b01062f6330 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Exp=C3=B3sito?= Date: Fri, 14 Jun 2024 17:04:20 +0200 Subject: [PATCH] backends/eis-client: Release buttons on device remove Due to a copy and paste error, buttons were not released when the device was removed. Found by Coverity. Part-of: --- src/backends/meta-eis-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/meta-eis-client.c b/src/backends/meta-eis-client.c index a45928928..0632d7150 100644 --- a/src/backends/meta-eis-client.c +++ b/src/backends/meta-eis-client.c @@ -153,7 +153,7 @@ drop_device (gpointer htkey, for (button = 0; button < MAX_BUTTON; button++) { - if (bit_is_set (device->button_state, key)) + if (bit_is_set (device->button_state, button)) notify_button (device, button, FALSE); }