mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
wayland: Fix global mouse position retrieval
This commit is contained in:
parent
d6f137b2be
commit
8cb303126f
1 changed files with 1 additions and 0 deletions
|
|
@ -903,6 +903,7 @@ static SDL_MouseButtonFlags SDLCALL Wayland_GetGlobalMouseState(float *x, float
|
|||
int off_x, off_y;
|
||||
|
||||
result = viddata->input->buttons_pressed;
|
||||
SDL_GetMouseState(x, y);
|
||||
SDL_RelativeToGlobalForWindow(focus, focus->x, focus->y, &off_x, &off_y);
|
||||
*x += off_x;
|
||||
*y += off_y;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue