From 125bcdd7dd49baf6af1829431d12cb1eefb436cd Mon Sep 17 00:00:00 2001 From: joten Date: Thu, 17 Jan 2019 17:58:19 +0100 Subject: [PATCH] Added more debug info regading monitor config Monitor_getWorkArea --- src/Monitor.ahk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) {