core/events: Fix cursor tracking for other backends
The cursor rendering code path used by the screen cast code relies on
the cursor tracker machinery to determine where to blit the cursor
texture, but at the moment the cursor position invalidation is behind
a check for whether the shell is using a Wayland backend. (This code
path used to be Wayland-specific before 00cbcb7ba1
but has been
backend-agnostic since).
This commit removes the check for a Wayland compositor, allowing
cursor drawing to function correctly on X11 when screen casting in
embedded cursor mode.
Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1780
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2474>
This commit is contained in:
parent
fe0a383d6f
commit
9bdf4b3572
@ -328,8 +328,7 @@ meta_display_handle_event (MetaDisplay *display,
|
||||
event->type != CLUTTER_DEVICE_REMOVED)
|
||||
handle_idletime_for_event (display, event);
|
||||
|
||||
#ifdef HAVE_WAYLAND
|
||||
if (wayland_compositor && event->type == CLUTTER_MOTION)
|
||||
if (event->type == CLUTTER_MOTION)
|
||||
{
|
||||
MetaCursorRenderer *cursor_renderer;
|
||||
ClutterInputDevice *device;
|
||||
@ -348,7 +347,6 @@ meta_display_handle_event (MetaDisplay *display,
|
||||
meta_cursor_tracker_invalidate_position (cursor_tracker);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
window = get_window_for_event (display, event, event_actor);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user