_mouse warp wayland fix

This commit is contained in:
2025-01-27 23:15:18 +02:00
parent 89df7f3771
commit bd83e00dbe

View File

@@ -418,6 +418,7 @@ public:
else
{
SDL_SetWindowMouseRect(windowHandle, oldScreenRect);
SDL_WarpMouseInWindow(windowHandle, oldPosition.X, oldPosition.Y);
oldScreenRect = nullptr;
relativeModeWindow = nullptr;
}