Skip to content

Commit aaa5d70

Browse files
committed
wayland: Check the cursor visibility flag when updating seat pointers
1 parent e1066ce commit aaa5d70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/video/wayland/SDL_waylandmouse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,7 @@ void Wayland_SeatUpdateCursor(SDL_WaylandSeat *seat)
11211121
SDL_Mouse *mouse = SDL_GetMouse();
11221122
SDL_WindowData *pointer_focus = seat->pointer.focus;
11231123

1124-
if (pointer_focus) {
1124+
if (pointer_focus && mouse->cursor_visible) {
11251125
const bool has_relative_focus = Wayland_SeatHasRelativePointerFocus(seat);
11261126

11271127
if (!seat->display->relative_mode_enabled || !has_relative_focus || !mouse->relative_mode_hide_cursor) {

0 commit comments

Comments
 (0)