Keyboard Focus lost when entering WSL2 #21828

Closed
opened 2026-01-31 07:55:53 +00:00 by claunia · 3 comments
Owner

Originally created by @rainerzufalldererste on GitHub (Jun 5, 2024).

Windows Terminal version

1.20.11381.0

Windows build number

10.0.22631.3593

Other Software

No response

Steps to reproduce

  • Open a new Terminal Tab with cmd.exe
  • Type wsl or bash
  • Continue typing to notice that Keyboard Focus has been lost
  • Click on Terminal to restore Keyboard Focus

Expected Behavior

Keyboard Focus is maintained

Actual Behavior

Keyboard Focus is lost

Originally created by @rainerzufalldererste on GitHub (Jun 5, 2024). ### Windows Terminal version 1.20.11381.0 ### Windows build number 10.0.22631.3593 ### Other Software _No response_ ### Steps to reproduce - Open a new Terminal Tab with cmd.exe - Type `wsl` or `bash` - Continue typing to notice that Keyboard Focus has been lost - Click on Terminal to restore Keyboard Focus ### Expected Behavior Keyboard Focus is maintained ### Actual Behavior Keyboard Focus is lost
claunia added the Issue-BugResolution-ExternalNeeds-Tag-Fix labels 2026-01-31 07:55:53 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Jun 5, 2024):

I am almost certain this is being tracked in https://github.com/microsoft/wslg/issues/894

@zadjii-msft commented on GitHub (Jun 5, 2024): I am almost certain this is being tracked in https://github.com/microsoft/wslg/issues/894
Author
Owner

@zadjii-msft commented on GitHub (Jun 5, 2024):

Nope found the right comment: https://github.com/microsoft/terminal/issues/12134#issuecomment-1010333944

can you check if disabling Linux GUI support by adding the below to .wslconfig (refer docs.microsoft.com/en-us/windows/wsl/wsl-config#configure-global-options-with-wslconfig)

 [wsl2]
 guiapplications=false

For linking:

@zadjii-msft commented on GitHub (Jun 5, 2024): Nope found the right comment: https://github.com/microsoft/terminal/issues/12134#issuecomment-1010333944 > can you check if disabling Linux GUI support by adding the below to `.wslconfig` (refer docs.microsoft.com/en-us/windows/wsl/wsl-config#configure-global-options-with-wslconfig) > > ```ini > [wsl2] > guiapplications=false > > ``` For linking: * /dup https://github.com/microsoft/WSLg/issues/443 * https://github.com/microsoft/WSL/issues/7511
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Jun 5, 2024):

Hi! We've identified this issue as a duplicate of one that exists on somebody else's Issue Tracker. Please make sure you subscribe to the referenced external issue for future updates. Thanks for your report!

@microsoft-github-policy-service[bot] commented on GitHub (Jun 5, 2024): Hi! We've identified this issue as a duplicate of one that exists on somebody else's Issue Tracker. Please make sure you subscribe to the referenced external issue for future updates. Thanks for your report! <!-- Policy app identification https://img.shields.io/static/v1?label=PullRequestIssueManagement. -->
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21828