[PR #17368] Make subsequent windows open in the foreground #31200

Open
opened 2026-01-31 09:45:46 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/17368

State: closed
Merged: Yes


Sometimes subsequent WT windows open in the background behind other applications. This PR tries to fix it.

Refs #15895
Refs #15479

Mysterious bug (and annoying). There are even some discussions about happening to the first startup, not just subsequent ones. Sometimes the window may show up without animation too. So I don't think this is the final solution, but it did get solved on my computer, for now.

Validation Steps Performed

  1. Quit all WT windows if some.
  2. Open File Explorer, click "Open in Terminal" in context menu.
  3. Move the newly opened window and minimize it.
  4. Back to step 1 and repeat several times.
  5. All the windows should open in the foreground correctly (yet possibly without animation).
**Original Pull Request:** https://github.com/microsoft/terminal/pull/17368 **State:** closed **Merged:** Yes --- Sometimes subsequent WT windows open in the background behind other applications. This PR tries to fix it. Refs #15895 Refs #15479 Mysterious bug (and annoying). There are even some discussions about happening to the first startup, not just subsequent ones. Sometimes the window may show up without animation too. So I don't think this is the final solution, but it did get solved on my computer, for now. ## Validation Steps Performed 0. Quit all WT windows if some. 1. Open File Explorer, click "Open in Terminal" in context menu. 2. Move the newly opened window and minimize it. 3. Back to step 1 and repeat several times. 4. All the windows should open in the foreground correctly (yet possibly without animation).
claunia added the pull-request label 2026-01-31 09:45:46 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31200