backends: Do not require a physical device to update pointer visibility

We may also want to update pointer visibility from emulated events
emitted directly on logical devices, as those we generate from XI_RawMotion
on X11 when the pointer is not over a compositor window.

Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/2344
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2766>
This commit is contained in:
Carlos Garnacho 2022-12-16 22:51:51 +01:00
parent 02d35309e6
commit 60e0fe776d

View File

@ -1032,9 +1032,6 @@ update_pointer_visibility_from_event (MetaBackend *backend,
uint32_t time_ms; uint32_t time_ms;
device = clutter_event_get_source_device (event); device = clutter_event_get_source_device (event);
if (clutter_input_device_get_device_mode (device) != CLUTTER_INPUT_MODE_PHYSICAL)
return;
device_type = clutter_input_device_get_device_type (device); device_type = clutter_input_device_get_device_type (device);
time_ms = clutter_event_get_time (event); time_ms = clutter_event_get_time (event);