From 731d77f762776a7e5f6a62390c4281ff74f7feeb Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 9 Apr 2008 20:24:27 +0200 Subject: [PATCH] winex11: Flush the display after creating X windows. --- dlls/winex11.drv/window.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c index 6edfbc551ca..4d5da02f147 100644 --- a/dlls/winex11.drv/window.c +++ b/dlls/winex11.drv/window.c @@ -610,6 +610,7 @@ static Window create_icon_window( Display *display, struct x11drv_win_data *data InputOutput, visual, CWEventMask | CWBitGravity | CWBackingStore | CWColormap, &attr ); XSaveContext( display, data->icon_window, winContext, (char *)data->hwnd ); + XFlush( display ); /* make sure the window exists before we start painting to it */ wine_tsx11_unlock(); TRACE( "created %lx\n", data->icon_window ); @@ -1097,6 +1098,9 @@ static Window create_whole_window( Display *display, struct x11drv_win_data *dat if (GetWindowRgn( data->hwnd, hrgn ) != ERROR) sync_window_region( display, data, hrgn ); DeleteObject( hrgn ); } + wine_tsx11_lock(); + XFlush( display ); /* make sure the window exists before we start painting to it */ + wine_tsx11_unlock(); return data->whole_window; } -- 2.11.4.GIT