Module: wine Branch: master Commit: 731d77f762776a7e5f6a62390c4281ff74f7feeb URL: http://source.winehq.org/git/wine.git/?a=commit;h=731d77f762776a7e5f6a62390c...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Apr 9 20:24:27 2008 +0200
winex11: Flush the display after creating X windows.
---
dlls/winex11.drv/window.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c index 6edfbc5..4d5da02 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; }