Skip to content

Commit

Permalink
try removing window minimization check, following pmb6tz#62 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
Viraj Navkal committed Aug 22, 2021
1 parent ea6a773 commit ab56208
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions desktop_switcher.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,7 @@ switchDesktopToLeft()

focusTheForemostWindow(targetDesktop) {
foremostWindowId := getForemostWindowIdOnDesktop(targetDesktop)
if isWindowNonMinimized(foremostWindowId) {
WinActivate, ahk_id %foremostWindowId%
}
}

isWindowNonMinimized(windowId) {
WinGet MMX, MinMax, ahk_id %windowId%
return MMX != -1
WinActivate, ahk_id %foremostWindowId%
}

getForemostWindowIdOnDesktop(n)
Expand Down

0 comments on commit ab56208

Please sign in to comment.