From 367a8b9701108e20188a0a5b10dfbf14f4e16555 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 17 Feb 2020 15:00:02 -0500 Subject: [PATCH] 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video/x11/SDL_x11window.c b/src/video/x11/SDL_x11window.c index aae6925cd..d3ffb786b 100644 --- a/src/video/x11/SDL_x11window.c +++ b/src/video/x11/SDL_x11window.c @@ -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);