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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3190>
This commit is contained in:
Carlos Garnacho 2023-08-17 14:18:11 +02:00 committed by Marge Bot
parent d4c923edf9
commit 7f7bcf1f5d

View File

@ -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