-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Force activate existing windows when running a commandline in them (#…
…9137) This will make sure to summon the terminal window when running a commandline in it. * If the window is on another desktop, the OS will switch to the desktop the window is on. * If the window is minimized, it will restore it. This is taken from my quake mode branch. It works aggressively. 848682a, fee6473, 342d3f2, 5052d31 all had other attempts at doing this, but they didn't work reliably. Part of the trick is that I don't _think_ Windows wants one process to be able to move another process into the foreground. In this case though, we _do_ want to move ourself into the foreground, and this `AttachThreadInput` hack seems to be the only way to do it reliably. References #5000 Uses code authored for #653 Closes https://github.com/microsoft/terminal/projects/5#card-54636373
- Loading branch information
1 parent
52d1533
commit 847749f
Showing
4 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters