ShowWindow shouldn't fix SWP_ flags, it's the job of SetWindowPos.
This commit is contained in:
parent
68467db6c6
commit
b6175f49af
|
@ -1316,15 +1316,6 @@ BOOL X11DRV_ShowWindow( HWND hwnd, INT cmd )
|
|||
if (wasVisible) goto END;
|
||||
|
||||
swp |= SWP_SHOWWINDOW | SWP_NOSIZE | SWP_NOMOVE;
|
||||
|
||||
/*
|
||||
* ShowWindow has a little peculiar behavior that if the
|
||||
* window is already the topmost window, it will not
|
||||
* activate it.
|
||||
*/
|
||||
if (GetTopWindow(NULL)==hwnd && (wasVisible || GetActiveWindow() == hwnd))
|
||||
swp |= SWP_NOACTIVATE;
|
||||
|
||||
break;
|
||||
|
||||
case SW_SHOWNOACTIVATE:
|
||||
|
|
Loading…
Reference in New Issue