mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-28 00:38:45 +00:00
video: Update the current display when moving a window programmatically
When moving a window programmatically, the move event will be deduplicated due to the window x and y coordinates already being updated, so the window's current display ID needs to be explicitly updated.
This commit is contained in:
parent
e8076b78ef
commit
d9fadb8b47
1 changed files with 1 additions and 0 deletions
|
|
@ -2201,6 +2201,7 @@ int SDL_SetWindowPosition(SDL_Window *window, int x, int y)
|
|||
} else {
|
||||
window->x = x;
|
||||
window->y = y;
|
||||
window->last_displayID = SDL_GetDisplayForWindow(window);
|
||||
|
||||
if (_this->SetWindowPosition) {
|
||||
_this->SetWindowPosition(_this, window);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue