winex11: Make sure to flush painting operations before moving a window.
diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index cc4ff7d..ac70c85 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -549,6 +549,7 @@
data->pixmap = pix;
data->gl_drawable = glxp;
+ XFlush( display );
wine_tsx11_unlock();
SetPropA(data->hwnd, gl_drawable_prop, (HANDLE)data->gl_drawable);
@@ -1020,14 +1021,6 @@
}
if (data->gl_drawable && (mask & (CWWidth|CWHeight))) sync_gl_drawable( display, data );
-
- /* make sure the changes get to the server before we start painting */
- if (data->client_window || data->gl_drawable)
- {
- wine_tsx11_lock();
- XFlush(display);
- wine_tsx11_unlock();
- }
}