diff --git a/src/Bar.ahk b/src/Bar.ahk index 04379cd..f8d721d 100644 --- a/src/Bar.ahk +++ b/src/Bar.ahk @@ -349,7 +349,7 @@ Bar_toggleCommandGui() { } Else { Bar_cmdGuiIsVisible := True x := Monitor_#%Manager_aMonitor%_barX + Monitor_#%Manager_aMonitor%_barWidth - Bar_#0_#0W - If (Config_verticalBarPos = "top") Or (Config_verticalBarPos = "tray" And Not Manager_aMonitor = Manager_taskBarMonitor) + If (Config_verticalBarPos = "top") Or (Config_verticalBarPos = "tray" And (Manager_taskBarPos = "top" Or Not Manager_aMonitor = Manager_taskBarMonitor)) y := Monitor_#%Manager_aMonitor%_y Else y := Monitor_#%Manager_aMonitor%_y + Monitor_#%Manager_aMonitor%_height - Bar_#0_#0H diff --git a/src/Monitor.ahk b/src/Monitor.ahk index 00dbc7b..6874a9d 100644 --- a/src/Monitor.ahk +++ b/src/Monitor.ahk @@ -145,6 +145,8 @@ Monitor_getWorkArea(m) { If (wndY <= monitorTop) { ; Top wndHeight += wndY - monitorTop monitorTop += wndHeight + If (A_LoopField = "Shell_TrayWnd") + Manager_taskBarPos := "top" } Else { ; Bottom wndHeight := monitorBottom - wndY monitorBottom -= wndHeight