Correct the sign on monocle layout with gap width.

This commit is contained in:
Joshua Fuhs 2012-06-22 23:45:09 -04:00
parent cb1566d440
commit 37b4ea2419
2 changed files with 8 additions and 7 deletions

View File

@ -73,16 +73,17 @@ Monitor_activateView(v) {
Monitor_#%m%_aView_#1 := v
Manager_hideShow := True
DetectHiddenWindows, On
View_arrange(m, v)
DetectHiddenWindows, Off
StringTrimRight, wndIds, View_#%m%_#%v%_wndIds, 1
Loop, PARSE, wndIds, `;
WinShow, ahk_id %A_LoopField%
StringTrimRight, wndIds, View_#%m%_#%aView%_wndIds, 1
Loop, PARSE, wndIds, `;
If Not (Manager_#%A_LoopField%_tags & (1 << v - 1))
WinHide, ahk_id %A_LoopField%
StringTrimRight, wndIds, View_#%m%_#%v%_wndIds, 1
DetectHiddenWindows, On
View_arrange(m, v)
DetectHiddenWindows, Off
Loop, PARSE, wndIds, `;
WinShow, ahk_id %A_LoopField%
Manager_hideShow := False
Bar_updateView(m, aView)

View File

@ -116,7 +116,7 @@ View_arrange_monocle(m, v, wndIds) {
StringTrimRight, wndIds, wndIds, 1
StringSplit, wndId, wndIds, `;
Loop, % wndId0
Manager_winMove(wndId%A_Index%, Monitor_#%m%_x - gw/2, Monitor_#%m%_y - gw/2, Monitor_#%m%_width + gw, Monitor_#%m%_height + gw)
Manager_winMove(wndId%A_Index%, Monitor_#%m%_x + gw/2, Monitor_#%m%_y + gw/2, Monitor_#%m%_width - gw, Monitor_#%m%_height - gw)
}
View_rotateLayoutAxis(i, d) {