-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terminal Doesn't Start With Focus When Launched From Search #13130
Comments
By any chance, is your default profile a WSL one/? This sounds like #12134 |
While that does sound awfully similar, my default profile is Powershell Core |
That being said, there was also a set of insiders builds that had horribly messed up app activation. I don't know what build numbers those were off the top of my head, but they should have been fixed by now. You still seeing this on the latest Windows 11 builds/? |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
Yeah I think this is a windows issue, not a terminal one, as I've seen it happen with other apps. I'll close it for now |
I am experiencing this on Windows 11 with Windows Terminal 1.18.2822.0. My default profile is PowerShell 7.3.8.0, installed from the Microsoft Store. The first time this happened to me was today. I did some testing, and it seems to only happen when you open a new instance of WT while a processes is running in WSL. Once you hit this bug, you have to close all WT instances to get rid of it. After closing all WT instances, you can open new instances in the foreground as expected. I noticed it first because I have a tunnel to some database server running in WSL, but PS C:\path\to\home> wsl user@computer:/path/to/home$ sleep 10 Within the 10 second sleep period, try to open another Windows Terminal instance from search. It will open in the background, and all new instances will do so until you close all the instances. Then you can open WT in the foreground again. Pretty infuriating stuff. I took the advice of zadjii-msft in his comment on #12134, adding [wsl2]
guiApplications=false to |
This is also happening for me, the weird thing is this only happens when I search for "Terminal" if I search for powershell or my wsl distro, it launches the same binary and it does pop up as a new window with the active focus on it. I don't understand why it behaves differently. Launching terminal opens the app behind all other windows so I have to alt tab into it, pretty annoying |
Same focus issue Windows Terminal Version1.18.3181.0 Windows VersionEdition Windows 10 Enterprise Specifics:Windows Terminal is pinned to the taskbar Steps to reproduce:
|
Not sure if this is helpful to any of you, but I discovered it was happening to me due to Quake Mode. As soon I activate it that way (and I do use Quake Mode a lot), new Windows terminal instances will not have focus upon launch. If I type exit in Quake Mode, further launches of Windows Terminal have focus again as expected. |
Workaround: |
Windows Terminal version
1.12.10983.0
Windows build number
10.0.22000.675
Other Software
No response
Steps to reproduce
Expected Behavior
Terminal should launch and have focus
Actual Behavior
Terminal launches, but is not the active window
The text was updated successfully, but these errors were encountered: