Never activate the window on SW_SHOWNOACTIVATE.
This commit is contained in:
parent
867fb9d79e
commit
046dbf94f8
|
@ -1213,8 +1213,7 @@ BOOL X11DRV_ShowWindow( HWND hwnd, INT cmd )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SW_SHOWNOACTIVATE:
|
case SW_SHOWNOACTIVATE:
|
||||||
swp |= SWP_NOZORDER;
|
swp |= SWP_NOACTIVATE | SWP_NOZORDER;
|
||||||
if (GetActiveWindow()) swp |= SWP_NOACTIVATE;
|
|
||||||
/* fall through */
|
/* fall through */
|
||||||
case SW_SHOWNORMAL: /* same as SW_NORMAL: */
|
case SW_SHOWNORMAL: /* same as SW_NORMAL: */
|
||||||
case SW_SHOWDEFAULT: /* FIXME: should have its own handler */
|
case SW_SHOWDEFAULT: /* FIXME: should have its own handler */
|
||||||
|
|
Loading…
Reference in New Issue