[mutter/wip/carlosg/x11-devices-config: 1/2] clutter/event: Do not filter out DEVICE_ADDED/REMOVED events




commit 6f06d60cbcc1d1e65f9a6214919c51f39b4cf4ce
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Nov 6 17:59:33 2020 +0100

    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.

 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 f6e458ab0b..7de601285d 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;
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]