cocoa: Convert popup window coordinates to global when adjusting the pointer offset

Fixes a regression in 958c4cbf0d

(cherry picked from commit 013844b003)
This commit is contained in:
Frank Praznik
2026-08-31 11:31:41 -04:00
parent 58ff755ea5
commit 4ef437dc55

View File

@@ -1924,6 +1924,7 @@ static void Cocoa_SendMouseButtonClicks(SDL_Mouse *mouse, NSEvent *theEvent, SDL
//if ([_data.listener isInFullscreenSpace]) {
int posx = 0, posy = 0;
SDL_GetWindowPosition(window, &posx, &posy);
SDL_RelativeToGlobalForWindow(window, posx, posy, &posx, &posy);
SDL_GetGlobalMouseState(&x, &y);
x -= posx;
y -= posy;