diff --git a/src/Monitor.ahk b/src/Monitor.ahk index 3d60c5b..523692a 100644 --- a/src/Monitor.ahk +++ b/src/Monitor.ahk @@ -145,7 +145,8 @@ Monitor_getWorkArea(m) { Local wndClasses, wndHeight, wndId, wndWidth, wndX, wndY SysGet, monitor, Monitor, %m% - + Debug_logMessage("DEBUG[0] Monitor_getWorkArea: #" . m . ", l: " . monitorLeft . ", r: " . monitorRight . ", t: " . monitorTop . ", b: " . monitorBottom . ".", 0) + wndClasses := "Shell_TrayWnd;Shell_SecondaryTrayWnd" ;; @TODO What about third and so forth TrayWnd? If Config_bbCompatibility @@ -160,7 +161,8 @@ Monitor_getWorkArea(m) { If (x >= monitorLeft && x <= monitorRight && y >= monitorTop && y <= monitorBottom) { If (A_LoopField = "Shell_TrayWnd") Or (A_LoopField = "Shell_SecondaryTrayWnd") Monitor_#%m%_taskBarClass := A_LoopField - + + Debug_logMessage("DEBUG[3] Monitor_getWorkArea: #" . m . ", window class: " . A_LoopField . ", x: " . wndX . ", y: " . wndY . ", w: " . wndWidth . ", h: " . wndHeight . ".", 3) If (wndHeight < wndWidth) { ;; Horizontal If (wndY <= monitorTop) {