mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 20:32:16 +00:00
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:
parent
02d35309e6
commit
60e0fe776d
@ -1032,9 +1032,6 @@ update_pointer_visibility_from_event (MetaBackend *backend,
|
||||
uint32_t time_ms;
|
||||
|
||||
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);
|
||||
time_ms = clutter_event_get_time (event);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user