winex11: Fix logic of whether to use XUnmapWindow() or XWithdrawWindow() in make_window_embedded().

Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Ken Thomases 2016-05-16 22:34:26 -05:00 committed by Alexandre Julliard
parent d987cc3d83
commit daa351ee82
1 changed files with 1 additions and 1 deletions

View File

@ -1174,7 +1174,7 @@ void make_window_embedded( struct x11drv_win_data *data )
/* the window cannot be mapped before being embedded */
if (data->mapped)
{
if (data->managed) XUnmapWindow( data->display, data->whole_window );
if (!data->managed) XUnmapWindow( data->display, data->whole_window );
else XWithdrawWindow( data->display, data->whole_window, data->vis.screen );
data->net_wm_state = 0;
}