# HG changeset patch # User Sam Lantinga # Date 1295460851 28800 # Node ID 5e3291605ad0638175a605b50a98a5824141b7cf # Parent 6a0803e47c7bc7b86a7cab2a0d348c7f27c32725 Added XFlush() so changes happen immediately instead of waiting for the next event loop. diff -r 6a0803e47c7b -r 5e3291605ad0 src/video/x11/SDL_x11window.c --- a/src/video/x11/SDL_x11window.c Wed Jan 19 00:07:43 2011 -0800 +++ b/src/video/x11/SDL_x11window.c Wed Jan 19 10:14:11 2011 -0800 @@ -746,6 +746,8 @@ } #endif + XFlush(display); + return 0; } @@ -858,6 +860,7 @@ } #endif } + XFlush(display); } void @@ -906,6 +909,7 @@ } else { XDeleteProperty(display, data->xwindow, _NET_WM_ICON); } + XFlush(display); } void @@ -934,6 +938,7 @@ y = window->y; } XMoveWindow(display, data->xwindow, x, y); + XFlush(display); } void @@ -945,6 +950,7 @@ if (SDL_IsShapedWindow(window)) X11_ResizeWindowShape(window); XResizeWindow(display, data->xwindow, window->w, window->h); + XFlush(display); } void @@ -954,6 +960,7 @@ Display *display = data->videodata->display; XMapRaised(display, data->xwindow); + XFlush(display); } void @@ -963,6 +970,7 @@ Display *display = data->videodata->display; XUnmapWindow(display, data->xwindow); + XFlush(display); } void @@ -972,6 +980,7 @@ Display *display = data->videodata->display; XRaiseWindow(display, data->xwindow); + XFlush(display); } static void @@ -1020,6 +1029,7 @@ XDeleteProperty(display, data->xwindow, _NET_WM_STATE); } } + XFlush(display); } void @@ -1037,6 +1047,7 @@ Display *display = data->videodata->display; XIconifyWindow(display, data->xwindow, displaydata->screen); + XFlush(display); } void @@ -1111,6 +1122,7 @@ #endif if (data->created) { XDestroyWindow(display, data->xwindow); + XFlush(display); } SDL_free(data); }