clutter/event: Do not filter out DEVICE_ADDED/REMOVED events

These devices in x11 are "disabled", that doesn't mean we should refrain
from notifying about them.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1553
This commit is contained in:
Carlos Garnacho 2020-11-06 17:59:33 +01:00
parent 8bf399ff0c
commit 34710eabc0

View File

@ -1494,7 +1494,9 @@ _clutter_event_push (const ClutterEvent *event,
device = clutter_event_get_device (event);
if (device != NULL)
{
if (!clutter_input_device_get_enabled (device))
if (event->type != CLUTTER_DEVICE_ADDED &&
event->type != CLUTTER_DEVICE_REMOVED &&
!clutter_input_device_get_enabled (device))
return;
}