mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
wayland: Check the cursor visibility flag when updating seat pointers
This commit is contained in:
parent
e1066ceea1
commit
aaa5d70efc
1 changed files with 1 additions and 1 deletions
|
|
@ -1121,7 +1121,7 @@ void Wayland_SeatUpdateCursor(SDL_WaylandSeat *seat)
|
|||
SDL_Mouse *mouse = SDL_GetMouse();
|
||||
SDL_WindowData *pointer_focus = seat->pointer.focus;
|
||||
|
||||
if (pointer_focus) {
|
||||
if (pointer_focus && mouse->cursor_visible) {
|
||||
const bool has_relative_focus = Wayland_SeatHasRelativePointerFocus(seat);
|
||||
|
||||
if (!seat->display->relative_mode_enabled || !has_relative_focus || !mouse->relative_mode_hide_cursor) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue