[mutter/wip/carlosg/x11-devices-config: 1/2] clutter/event: Do not filter out DEVICE_ADDED/REMOVED events
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/x11-devices-config: 1/2] clutter/event: Do not filter out DEVICE_ADDED/REMOVED events
- Date: Sat, 7 Nov 2020 08:57:45 +0000 (UTC)
commit 342e082a71bdc228510f9f46ea387125021506ba
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]