Skip to content

Commit

Permalink
x11: Use XSync when changing window position instead of XFlush.
Browse files Browse the repository at this point in the history
Attempt to fix regression in Bugzilla #4646.
  • Loading branch information
icculus committed Jan 28, 2020
1 parent c7e1b28 commit 39563b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11window.c
Expand Up @@ -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. */
Expand Down

0 comments on commit 39563b7

Please sign in to comment.