mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
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:
parent
8bf399ff0c
commit
34710eabc0
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user