Skip to content

Commit

Permalink
x11: Don't wait for the window to move if it's already in the place w…
Browse files Browse the repository at this point in the history
…e want it.
  • Loading branch information
icculus committed Feb 17, 2020
1 parent 1d624aa commit 367a8b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/video/x11/SDL_x11window.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 367a8b9

Please sign in to comment.