Cleanup and continue to enforce the separation of layout vs. content
This commit is contained in:
parent
1284147a23
commit
0b8a381846
1 changed files with 6 additions and 8 deletions
10
src/View.ahk
10
src/View.ahk
|
@ -220,10 +220,6 @@ View_setMFactor(d) {
|
|||
v := Monitor_#%Manager_aMonitor%_aView_#1
|
||||
l := View_#%Manager_aMonitor%_#%v%_layout_#1
|
||||
If (Config_layoutFunction_#%l% = "tile") {
|
||||
mfact := 0
|
||||
If (d >= 1.05)
|
||||
mfact := d
|
||||
Else
|
||||
mfact := View_#%Manager_aMonitor%_#%v%_layoutMFact + d
|
||||
If (mfact >= 0.05 And mfact <= 0.95) {
|
||||
View_#%Manager_aMonitor%_#%v%_layoutMFact := mfact
|
||||
|
@ -238,11 +234,13 @@ View_setMSplit(d) {
|
|||
v := Monitor_#%Manager_aMonitor%_aView_#1
|
||||
l := View_#%Manager_aMonitor%_#%v%_layout_#1
|
||||
If (Config_layoutFunction_#%l% = "tile") {
|
||||
n := View_getTiledWndIds(Manager_aMonitor, v, wndIds)
|
||||
View_#%Manager_aMonitor%_#%v%_layoutMSplit := Manager_loop(View_#%Manager_aMonitor%_#%v%_layoutMSplit, d, 1, n)
|
||||
n := View_#%Manager_aMonitor%_#%v%_layoutMSplit + d
|
||||
If ( n > 0 And n < 10 ) {
|
||||
View_#%Manager_aMonitor%_#%v%_layoutMSplit := n
|
||||
View_arrange(Manager_aMonitor, v)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
View_shuffleWindow(d) {
|
||||
Local aWndHeight, aWndId, aWndWidth, aWndX, aWndY, i, j, l, search, v, wndId0, wndIds
|
||||
|
|
Loading…
Reference in a new issue