mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 13:10:28 +00:00
Only unmap the window when it gets moved off-screen by the app, not by
the window manager.
This commit is contained in:
parent
435623df6f
commit
0118c8ba0f
@ -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 ))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user