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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3809>
This commit is contained in:
José Expósito 2024-06-14 17:04:20 +02:00
parent 69835c9ec1
commit 4ae305f19e

View File

@ -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);
}