WSL does not get focus when launching from taskbar #341

Closed
opened 2026-01-30 21:49:29 +00:00 by claunia · 2 comments
Owner

Originally created by @mariusstrom on GitHub (Aug 14, 2018).

  • Your Windows build number: (Type ver at a Windows Command Prompt)
    17134

  • What you're doing and what's happening: (Copy & paste specific commands and their output, or include screen shots)
    If an instance of WSL is running, to run another copy: right-click on the running instance in Taskbar, and select the instance name (i.e., Ubuntu).

  • What's wrong / what should be happening instead:
    In all other apps (including cmd.exe), the new instance immediately takes focus. With WSL, explorer.exe retains focus and requires either alt-tab to the WSL window or clicking in the WSL window.

I've also posted this in the WSL issue tracker as issue 3443; not sure which component is actually at fault here.

Originally created by @mariusstrom on GitHub (Aug 14, 2018). * Your Windows build number: (Type `ver` at a Windows Command Prompt) 17134 * What you're doing and what's happening: (Copy & paste specific commands and their output, or include screen shots) If an instance of WSL is running, to run another copy: right-click on the running instance in Taskbar, and select the instance name (i.e., Ubuntu). * What's wrong / what should be happening instead: In all other apps (including cmd.exe), the new instance immediately takes focus. With WSL, explorer.exe retains focus and requires either alt-tab to the WSL window or clicking in the WSL window. I've also posted this in the WSL issue tracker as [issue 3443](https://github.com/Microsoft/WSL/issues/3443); not sure which component is actually at fault here.
Author
Owner

@wkbrd commented on GitHub (Aug 16, 2018):

Please see the related issues Microsoft/WSL#2597 and Microsoft/WSL#3123 and the associated console issue Microsoft/Console#179.

@wkbrd commented on GitHub (Aug 16, 2018): Please see the related issues Microsoft/WSL#2597 and Microsoft/WSL#3123 and the associated console issue Microsoft/Console#179.
Author
Owner

@bitcrazed commented on GitHub (Sep 11, 2018):

Thanks for reporting @mariusstrom - closing as a dupe of #179

@bitcrazed commented on GitHub (Sep 11, 2018): Thanks for reporting @mariusstrom - closing as a dupe of #179
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#341