From 7f7bcf1f5db60393b8b294995c207be6b6c21439 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Thu, 17 Aug 2023 14:18:11 +0200 Subject: [PATCH] clutter: Check ClutterEventFlags under clutter_event_is_pointer_emulated() This function checks a field that is now never set. Make this function useful again by checking CLUTTER_EVENT_FLAG_POINTER_EMULATED as these events are now set. Part-of: --- clutter/clutter/clutter-event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter/clutter-event.c b/clutter/clutter/clutter-event.c index 8bad3dff3..236d83106 100644 --- a/clutter/clutter/clutter-event.c +++ b/clutter/clutter/clutter-event.c @@ -1353,7 +1353,7 @@ clutter_event_is_pointer_emulated (const ClutterEvent *event) { g_return_val_if_fail (event != NULL, FALSE); - return ((ClutterEventPrivate *) event)->is_pointer_emulated; + return !!(event->any.flags & CLUTTER_EVENT_FLAG_POINTER_EMULATED); } gboolean