Commit 39563b7bfa79f4c16dfd7966a05817c6f5e34d47

Ryan C. Gordon 2020-01-28T13:51:24

x11: Use XSync when changing window position instead of XFlush. Attempt to fix regression in Bugzilla #4646.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/video/x11/SDL_x11window.c b/src/video/x11/SDL_x11window.c
index 64bdb78..d5b7fd0 100644
--- a/src/video/x11/SDL_x11window.c
+++ b/src/video/x11/SDL_x11window.c
@@ -810,7 +810,7 @@ X11_SetWindowPosition(_THIS, SDL_Window * window)
 
     /*Attempt to move the window*/
     X11_XMoveWindow(display, data->xwindow, window->x - data->border_left, window->y - data->border_top);
-    X11_XFlush(display);
+    X11_XSync(display, False);
 
     /*If the window is not moved, then the coordinates on the window structure are out of sync, so we
       update them here. */