diff --git a/src/cascadia/Remoting/WindowManager.cpp b/src/cascadia/Remoting/WindowManager.cpp index a9d3a42e018..88c3a0218d1 100644 --- a/src/cascadia/Remoting/WindowManager.cpp +++ b/src/cascadia/Remoting/WindowManager.cpp @@ -130,6 +130,8 @@ namespace winrt::Microsoft::Terminal::Remoting::implementation // We connected to a monarch instance, not us though. This won't hit // in isolated mode. + LOG_IF_FAILED(CoAllowSetForegroundWindow(winrt::get_unknown(_monarch), nullptr)); + // Send the commandline over to the monarch process if (_proposeToMonarch(args)) {