Commit e34ccb4c authored by Alexandre Julliard's avatar Alexandre Julliard

x11drv: Get rid of XSync calls on window creation and destruction.

parent fb8ca46e
......@@ -702,8 +702,6 @@ static Window create_whole_window( Display *display, struct x11drv_win_data *dat
changes.stack_mode = Below;
XConfigureWindow( display, data->whole_window, CWStackMode, &changes );
}
XSync( display, False ); /* FIXME: should not be needed */
wine_tsx11_unlock();
xim = x11drv_thread_data()->xim;
......@@ -730,7 +728,6 @@ static void destroy_whole_window( Display *display, struct x11drv_win_data *data
TRACE( "win %p xwin %lx\n", data->hwnd, data->whole_window );
if (thread_data->cursor_window == data->whole_window) thread_data->cursor_window = None;
wine_tsx11_lock();
XSync( gdi_display, False ); /* flush any reference to this drawable in GDI queue */
XDeleteContext( display, data->whole_window, winContext );
if (data->whole_window != DefaultRootWindow(display))
XDestroyWindow( display, data->whole_window );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment