Revert "Fixed bug in "active window" tracking"
This reverts commit b79369c125
.
This commit is contained in:
parent
70f9c9c4a6
commit
788dca4ae4
3 changed files with 11 additions and 3 deletions
BIN
bugn.exe
BIN
bugn.exe
Binary file not shown.
|
@ -175,9 +175,19 @@ Manager_closeWindow() {
|
|||
Local aView, aWndId, wndId0, wndIds
|
||||
|
||||
WinGet, aWndId, ID, A
|
||||
If Window_isProg(aWndId)
|
||||
If Window_isProg(aWndId) {
|
||||
;; Prior to closing, find the next window that should have focus.
|
||||
;; If there is no such window, choose the bar on the same monitor.
|
||||
aView := Monitor_#%Manager_aMonitor%_aView_#1
|
||||
StringTrimRight, wndIds, View_#%Manager_aMonitor%_#%aView%_wndIds, 1
|
||||
StringSplit, wndId, wndIds, `;
|
||||
If (wndId0 >= 2)
|
||||
View_activateWindow(0, +1)
|
||||
Else
|
||||
Manager_winActivate(0)
|
||||
Window_close(aWndId)
|
||||
}
|
||||
}
|
||||
|
||||
; Asynchronous management of various WM properties.
|
||||
; We want to make sure that we can recover the layout and windows in the event of
|
||||
|
@ -542,7 +552,6 @@ Manager_onShellMessage(wParam, lParam) {
|
|||
Debug_logMessage("DEBUG[1] Manager_onShellMessage: Manager_monitorCount: " Manager_monitorCount ", Manager_aMonitor: " Manager_aMonitor ", m: " m, 1)
|
||||
If m
|
||||
Manager_aMonitor := m
|
||||
View_setActiveWindow(Manager_aMonitor, Monitor_#%Manager_aMonitor%_aView_#1, lParam)
|
||||
updateTitleBar := True
|
||||
} Else If (wParam = HSHELL_WINDOWREPLACED) {
|
||||
updateView := Manager_unmanage(lParam)
|
||||
|
|
|
@ -78,7 +78,6 @@ Window_isElevated(wndId) {
|
|||
WinGetTitle, wndTitle, ahk_id %wndId%
|
||||
WinSetTitle, ahk_id %wndId%, , % wndTitle " "
|
||||
WinGetTitle, newWndTitle, ahk_id %wndId%
|
||||
WinSetTitle, ahk_id %wndId%, , % wndTitle
|
||||
Return, (newWndTitle = wndTitle)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue