backends: Do not use clutter_event_[set|is]_pointer_emulated()

Add a new ClutterEventFlag to propagate this information, affecting
a few selected events on each backend.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3153>
This commit is contained in:
Carlos Garnacho
2023-07-21 18:44:17 +02:00
parent 9e96b523ea
commit a08eea7f10
5 changed files with 11 additions and 8 deletions

View File

@ -138,7 +138,7 @@ sequence_is_pointer_emulated (MetaDisplay *display,
if (!sequence)
return FALSE;
if (clutter_event_is_pointer_emulated (event))
if (clutter_event_get_flags (event) & CLUTTER_EVENT_FLAG_POINTER_EMULATED)
return TRUE;
#ifdef HAVE_NATIVE_BACKEND