Browse Source

wayland: Fix global mouse position retrieval

(cherry picked from commit 8cb303126f2679f1a855eb630ce9ddb7c743e382)
Frank Praznik 3 weeks ago
parent
commit
c067cb4e7d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/video/wayland/SDL_waylandmouse.c

+ 1 - 0
src/video/wayland/SDL_waylandmouse.c

@@ -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;