x11: Don't wait for the window to move if it's already in the place we want it.
authorRyan C. Gordon
Mon, 17 Feb 2020 15:00:02 -0500
changeset 13533867352e06641
parent 13532 fab2cd7dee5b
child 13534 24e8a27fa627
x11: Don't wait for the window to move if it's already in the place we want it.
src/video/x11/SDL_x11window.c
     1.1 --- a/src/video/x11/SDL_x11window.c	Sun Feb 16 00:08:36 2020 -0800
     1.2 +++ b/src/video/x11/SDL_x11window.c	Mon Feb 17 15:00:02 2020 -0500
     1.3 @@ -835,6 +835,8 @@
     1.4              window->x = x;
     1.5              window->y = y;
     1.6              break;  /* window moved, time to go. */
     1.7 +        } else if ((x == window->x) && (y == window->y)) {
     1.8 +            break;  /* we're at the place we wanted to be anyhow, drop out. */
     1.9          }
    1.10  
    1.11          SDL_Delay(10);