mirror of
https://github.com/microsoft/terminal.git
synced 2026-02-04 05:35:20 +00:00
This fixes Out-GridView
This is a hack, but an amazing proof of concept
This commit is contained in:
@@ -456,7 +456,10 @@ PCONSOLE_API_MSG IoDispatchers::ConsoleHandleConnectionRequest(_In_ PCONSOLE_API
|
||||
return pReceiveMsg;
|
||||
}
|
||||
|
||||
gci.ProcessHandleList.ModifyConsoleProcessFocus(WI_IsFlagSet(gci.Flags, CONSOLE_HAS_FOCUS));
|
||||
const bool inConpty{ gci.IsInVtIoMode() };
|
||||
const bool hasFocus{ WI_IsFlagSet(gci.Flags, CONSOLE_HAS_FOCUS) };
|
||||
const auto grantFG{ inConpty || hasFocus };
|
||||
gci.ProcessHandleList.ModifyConsoleProcessFocus(grantFG);
|
||||
|
||||
// Create the handles.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user