Quickfix regarding issue #176

... getting the paramter `i` in function `View_activateWindow` in use.
This commit is contained in:
joten 2018-05-01 14:05:57 +02:00 committed by GitHub
parent bd2b162f81
commit 01e38248f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,7 +39,7 @@ View_activateWindow(i, d = 0) {
Local aWndId, direction, failure, j, v, wndId, wndId0, wndIds
Debug_logMessage("DEBUG[1] View_activateWindow(" . i . ", " . d . ")", 1)
If (d = 0)
If (i = 0) And (d = 0)
Return
WinGet, aWndId, ID, A
@ -49,7 +49,13 @@ View_activateWindow(i, d = 0) {
StringTrimRight, wndIds, View_#%Manager_aMonitor%_#%v%_wndIds, 1
StringSplit, wndId, wndIds, `;
Debug_logMessage("DEBUG[2] wndId count: " . wndId0, 2, False)
If (wndId0 > 1) {
If (i > 0) And (i <= wndId0) And (d = 0) {
wndId := wndId%i%
Window_set(wndId, "AlwaysOnTop", "On")
Window_set(wndId, "AlwaysOnTop", "Off")
Window_#%wndId%_isMinimized := False
Manager_winActivate(wndId)
} Else If (wndId0 > 1) {
If Not InStr(Manager_managedWndIds, aWndId . ";") Or Window_#%aWndId%_isFloating
Window_set(aWndId, "Bottom", "")
Loop, % wndId0 {