x11: Don't wait for the window to move if it's already in the place we want it.
--HG-- extra : rebase_source : b7ad35263159d7ac5c6c005c9bb0c9dc96bb8a18
This commit is contained in:
parent
2a440598ca
commit
e647acf78d
1 changed files with 2 additions and 0 deletions
|
@ -835,6 +835,8 @@ X11_SetWindowPosition(_THIS, SDL_Window * window)
|
|||
window->x = x;
|
||||
window->y = y;
|
||||
break; /* window moved, time to go. */
|
||||
} else if ((x == window->x) && (y == window->y)) {
|
||||
break; /* we're at the place we wanted to be anyhow, drop out. */
|
||||
}
|
||||
|
||||
SDL_Delay(10);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue