changeset 5031:5e3291605ad0

Added XFlush() so changes happen immediately instead of waiting for the next event loop.
author Sam Lantinga <slouken@libsdl.org>
date Wed, 19 Jan 2011 10:14:11 -0800
parents 6a0803e47c7b
children 6ccfbaef0c0a
files src/video/x11/SDL_x11window.c
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
     }