Compare commits

...

1 Commits

Author SHA1 Message Date
Mike Griese
7da382c948 This was the next theory Evan had for #13388 2023-01-11 09:37:54 -06:00

View File

@@ -464,6 +464,17 @@ using namespace Microsoft::Console::Interactivity;
_WritePseudoWindowCallback((bool)wParam);
}
}
case WM_ACTIVATE:
{
if (const auto ownerHwnd{ ::GetAncestor(hWnd, GA_ROOTOWNER) })
{
if (LOWORD(wParam) != WA_INACTIVE)
{
SetActiveWindow(ownerHwnd);
}
}
}
}
// If we get this far, call the default window proc
return DefWindowProcW(hWnd, Message, wParam, lParam);