mirror of https://github.com/encounter/SDL.git
x11: Don't wait for the window to move if it's already in the place we want it.
This commit is contained in:
parent
1d624aa573
commit
367a8b9701
|
@ -835,6 +835,8 @@ X11_SetWindowPosition(_THIS, SDL_Window * window)
|
||||||
window->x = x;
|
window->x = x;
|
||||||
window->y = y;
|
window->y = y;
|
||||||
break; /* window moved, time to go. */
|
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);
|
SDL_Delay(10);
|
||||||
|
|
Loading…
Reference in New Issue