From 34710eabc0dc2154d26296f3121728683af4afe6 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 6 Nov 2020 17:59:33 +0100 Subject: [PATCH] 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 --- clutter/clutter/clutter-event.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clutter/clutter/clutter-event.c b/clutter/clutter/clutter-event.c index f6e458ab0..7de601285 100644 --- a/clutter/clutter/clutter-event.c +++ b/clutter/clutter/clutter-event.c @@ -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; }