Commit 453b3243 authored by Alexandre Julliard's avatar Alexandre Julliard

Map top-level windows when WS_VISIBLE is set, but don't unmap them

when it's cleared.
parent 717e8f45
......@@ -839,14 +839,19 @@ void X11DRV_SetWindowStyle( HWND hwnd, LONG oldStyle )
if (changed & WS_VISIBLE)
{
if (!IsRectEmpty( &wndPtr->rectWindow ) && !is_window_top_level(wndPtr))
if (!IsRectEmpty( &wndPtr->rectWindow ))
{
if (wndPtr->dwStyle & WS_VISIBLE)
{
TRACE( "mapping win %p\n", hwnd );
if (is_window_top_level(wndPtr))
{
X11DRV_sync_window_style( display, wndPtr );
X11DRV_set_wm_hints( display, wndPtr );
}
TSXMapWindow( display, get_whole_window(wndPtr) );
}
else
else if (!is_window_top_level(wndPtr)) /* don't unmap managed windows */
{
TRACE( "unmapping win %p\n", hwnd );
TSXUnmapWindow( display, get_whole_window(wndPtr) );
......
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