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:
parent
d4c923edf9
commit
7f7bcf1f5d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user