Skip to content

Commit 8cb3031

Browse files
committed
wayland: Fix global mouse position retrieval
1 parent d6f137b commit 8cb3031

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/video/wayland/SDL_waylandmouse.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -903,6 +903,7 @@ static SDL_MouseButtonFlags SDLCALL Wayland_GetGlobalMouseState(float *x, float
903903
int off_x, off_y;
904904

905905
result = viddata->input->buttons_pressed;
906+
SDL_GetMouseState(x, y);
906907
SDL_RelativeToGlobalForWindow(focus, focus->x, focus->y, &off_x, &off_y);
907908
*x += off_x;
908909
*y += off_y;

0 commit comments

Comments
 (0)