Commit 5933a0a
fix: extend focus-when-covered fix to tray click + Cmd+Ctrl+T
Apply the same three-state logic to:
- Tray left-click (trayToggleEvtHandler default branch)
- Cmd+Ctrl+T Terminal callback
For Cmd+Ctrl+T, the visible-but-unfocused branch also sends
'switch-to-terminal' so the user lands on the Terminal tab
after the window comes to front (matches the user intent of
"I want to use the terminal").
Also adds the missing !window.isMinimized() check to both
callbacks for consistency with quickSwitcherCallback.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 6d36860 commit 5933a0a
2 files changed
Lines changed: 34 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
6 | 7 | | |
7 | | - | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1002 | 1002 | | |
1003 | 1003 | | |
1004 | 1004 | | |
1005 | | - | |
1006 | | - | |
1007 | | - | |
1008 | | - | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
1009 | 1022 | | |
1010 | | - | |
1011 | 1023 | | |
1012 | 1024 | | |
1013 | 1025 | | |
| |||
1638 | 1650 | | |
1639 | 1651 | | |
1640 | 1652 | | |
1641 | | - | |
1642 | | - | |
1643 | | - | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
| 1657 | + | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
| 1661 | + | |
| 1662 | + | |
| 1663 | + | |
| 1664 | + | |
| 1665 | + | |
1644 | 1666 | | |
1645 | 1667 | | |
1646 | 1668 | | |
| |||
0 commit comments