An app opened from inside Terminal stays behind Terminal (but above other apps) #21789

Closed
opened 2026-01-31 07:54:54 +00:00 by claunia · 5 comments
Owner

Originally created by @amaramth on GitHub (May 31, 2024).

Windows Terminal version

1.19.11213.0

Windows build number

10.0.19045.4412

Other Software

tmux 3.4 inside bash 5.2.21(1)-release (x86_64-pc-linux-gnu) inside Ubuntu 24.04 WSL (wsl.exe version 10.0.19041.4355)

windows terminal set to maximized focus

Steps to reproduce

run any app, such as '/mnt/c/Program Files/Sublime Text 3/sublime_text.exe'

Expected Behavior

the app opens in front. this works correctly if the command is run in bash directly.

Actual Behavior

the app opens in front of windows other than windows terminal, but behind windows terminal

Originally created by @amaramth on GitHub (May 31, 2024). ### Windows Terminal version 1.19.11213.0 ### Windows build number 10.0.19045.4412 ### Other Software tmux 3.4 inside bash 5.2.21(1)-release (x86_64-pc-linux-gnu) inside Ubuntu 24.04 WSL (wsl.exe version 10.0.19041.4355) windows terminal set to maximized focus ### Steps to reproduce run any app, such as `'/mnt/c/Program Files/Sublime Text 3/sublime_text.exe'` ### Expected Behavior the app opens in front. this works correctly if the command is run in bash directly. ### Actual Behavior the app opens in front of windows other than windows terminal, but behind windows terminal
claunia added the Needs-TriageIssue-BugNeeds-Attention labels 2026-01-31 07:54:54 +00:00
Author
Owner

@amaramth commented on GitHub (May 31, 2024):

i fixed this by blanking ~/.tmux.conf, reloading tmux source, and then replacing the contents. various restarts (of tmux, windows terminal, windows) did not fix this. modifying launch mode from maximized focus to normal did not fix this.

@amaramth commented on GitHub (May 31, 2024): i fixed this by blanking ~/.tmux.conf, reloading tmux source, and then replacing the contents. various restarts (of tmux, windows terminal, windows) did not fix this. modifying launch mode from maximized focus to normal did not fix this.
Author
Owner

@amaramth commented on GitHub (Jun 2, 2024):

it did not stay fixed. some days this issue does not occur; other days it does. can't think of anything i might be doing that could affect it.

edit july 7: ongoing. today this issue occurs, yesterday it did not

@amaramth commented on GitHub (Jun 2, 2024): it did not stay fixed. some days this issue does not occur; other days it does. can't think of anything i might be doing that could affect it. edit july 7: ongoing. today this issue occurs, yesterday it did not
Author
Owner

@carlos-zamora commented on GitHub (Jul 10, 2024):

Does this only happen in WSL /?

@carlos-zamora commented on GitHub (Jul 10, 2024): Does this only happen in WSL /?
Author
Owner

@amaramth commented on GitHub (Jul 11, 2024):

this happens specifically in tmux in wsl. for example, i open command prompt, run mpv.exe file; this bug does not occur. i open command prompt, run bash, then run mpv.exe file; this bug does not occur. i open command prompt, run bash, run tmux, then run mpv.exe file; this bug does occur.

this bug also occurs if i use windows terminal instead of command prompt.

i file this bug here instead of https://github.com/tmux/tmux - this is an issue with windows, not tmux.
maybe i should file in https://github.com/microsoft/WSL? but they state to please file UI/UX related issues here.

@amaramth commented on GitHub (Jul 11, 2024): this happens specifically in tmux in wsl. for example, i open command prompt, run `mpv.exe file`; this bug does not occur. i open command prompt, run `bash`, then run `mpv.exe file`; this bug does not occur. i open command prompt, run `bash`, run `tmux`, then run `mpv.exe file`; this bug does occur. this bug also occurs if i use windows terminal instead of command prompt. i file this bug here instead of https://github.com/tmux/tmux - this is an issue with windows, not tmux. maybe i should file in https://github.com/microsoft/WSL? but they state to please file UI/UX related issues here.
Author
Owner

@carlos-zamora commented on GitHub (Jul 17, 2024):

maybe i should file in microsoft/WSL? but they state to please file UI/UX related issues here.

Generally, yes, but because WSL interop is involved, let's file the bug over there. Could you file the bug on their repo? Thanks

@carlos-zamora commented on GitHub (Jul 17, 2024): > maybe i should file in [microsoft/WSL](https://github.com/microsoft/WSL)? but they state to please file UI/UX related issues here. Generally, yes, but because WSL interop is involved, let's file the bug over there. Could you file the bug on [their repo](https://github.com/microsoft/WSL)? Thanks
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21789