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:
parent
69835c9ec1
commit
4ae305f19e
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user