microsoft / microsoft/terminal
`globalSummon` with `"monitor": "any"` behaves as `"monitor": "toCurrent"`
- Dominant language
- C++
- Stars
- 105k
- Forks
- 9.6k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 29
Description
### Windows Terminal version
1.24.11321.0
### Windows build number
10.0.19045
### Other Software
Virtual desktops (native)
### Steps to reproduce
1. Add the following action to settings.json:
```json
{
"command": {
"action": "globalSummon",
"desktop": "toCurrent",
"monitor": "any",
"toggleVisibility": false
},
"id": "User.MyGlobalSummon."
}
```
2. Set the keybinding for "Show/Hide the Terminal window". I'm using `win+~` (replacing quake mode).
3. Move a Terminal window to a particular virtual desktop and monitor.
4. Switch to any virtual desktop and move an application window to the foreground on any monitor BUT the MRU Terminal window's monitor.
5. Run the keyboard shortcut.
### Expected Behavior
The MRU Terminal window moves to the current virtual desktop and is left where it is/was on the monitor.
### Actual Behavior
The MRU Terminal window moves to the current virtual desktop and the monitor with the currently foregrounded window.
Contributor guide
Research direction
Start by reproducing the issue with the settings.json globalSummon action and the stated virtual-desktop and monitor setup. Trace the globalSummon handling for the monitor value "any" and verify that the MRU Terminal window moves to the current virtual desktop without being moved to the foreground window's monitor.
Written by the indexing model from the issue text.
Assessment
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100