x11: Use XSync when changing window position instead of XFlush.

Attempt to fix regression in Bugzilla #4646.
This commit is contained in:
Ryan C. Gordon 2020-01-28 13:51:24 -05:00
parent c7e1b289ee
commit 39563b7bfa
1 changed files with 1 additions and 1 deletions

View File

@ -810,7 +810,7 @@ X11_SetWindowPosition(_THIS, SDL_Window * window)
/*Attempt to move the window*/ /*Attempt to move the window*/
X11_XMoveWindow(display, data->xwindow, window->x - data->border_left, window->y - data->border_top); 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 /*If the window is not moved, then the coordinates on the window structure are out of sync, so we
update them here. */ update them here. */