Commit 0118c8ba authored by Alexandre Julliard's avatar Alexandre Julliard

Only unmap the window when it gets moved off-screen by the app, not by

the window manager.
parent 435623df
......@@ -1014,7 +1014,7 @@ BOOL X11DRV_SetWindowPos( WINDOWPOS *winpos )
RDW_NOERASE | RDW_NOINTERNALPAINT | RDW_ALLCHILDREN );
set_visible_style( winpos->hwnd, FALSE );
}
else if ((wndPtr->dwStyle & WS_VISIBLE) &&
else if ((wndPtr->dwStyle & WS_VISIBLE) && bChangePos &&
X11DRV_is_window_rect_mapped( &oldWindowRect ) &&
!X11DRV_is_window_rect_mapped( &newWindowRect ))
{
......@@ -1046,7 +1046,7 @@ BOOL X11DRV_SetWindowPos( WINDOWPOS *winpos )
{
set_visible_style( winpos->hwnd, TRUE );
}
else if ((wndPtr->dwStyle & WS_VISIBLE) &&
else if ((wndPtr->dwStyle & WS_VISIBLE) && bChangePos &&
!X11DRV_is_window_rect_mapped( &oldWindowRect ) &&
X11DRV_is_window_rect_mapped( &newWindowRect ))
{
......
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