fixed bugs regarding issues #95 and #101

This commit is contained in:
joten 2016-05-11 22:17:37 +02:00
parent b36404183e
commit 744ee1f7d7
3 changed files with 5 additions and 3 deletions

BIN
bugn.exe

Binary file not shown.

View file

@ -1124,11 +1124,12 @@ Manager_initial_sync(doRestore) {
;; those, which have at least a title or class. ;; those, which have at least a title or class.
Manager_sync(ByRef wndIds = "") Manager_sync(ByRef wndIds = "")
{ {
Local a, flag, shownWndIds, v, visibleWndIds, wndId Local a, flag, mCount, shownWndIds, v, visibleWndIds, wndId
a := 0 a := 0
shownWndIds := "" shownWndIds := ""
Loop, % Manager_monitorCount SysGet, mCount, MonitorCount
Loop, % mCount
{ {
v := Monitor_#%A_Index%_aView_#1 v := Monitor_#%A_Index%_aView_#1
shownWndIds .= View_#%A_Index%_#%v%_wndIds shownWndIds .= View_#%A_Index%_#%v%_wndIds

View file

@ -224,7 +224,7 @@ View_moveToIndex(m, v, n, w) {
View_#%n%_#%w%_margins := View_#%m%_#%v%_margins View_#%n%_#%w%_margins := View_#%m%_#%v%_margins
View_#%n%_#%w%_showStackArea := View_#%m%_#%v%_showStackArea View_#%n%_#%w%_showStackArea := View_#%m%_#%v%_showStackArea
View_#%n%_#%w%_wndIds := View_#%m%_#%v%_wndIds View_#%n%_#%w%_wndIds := View_#%m%_#%v%_wndIds
StringSplit, View_#%n%_#%w%_margin, View_#%n%_#%w%_margin, `; StringSplit, View_#%n%_#%w%_margin, View_#%n%_#%w%_margins, `;
StringTrimRight, wndIds, View_#%n%_#%w%_wndIds, 1 StringTrimRight, wndIds, View_#%n%_#%w%_wndIds, 1
Loop, PARSE, wndIds, `; Loop, PARSE, wndIds, `;
{ {
@ -295,6 +295,7 @@ View_setLayout(i, d = 0) {
View_setLayoutProperty(name, i, d, opt = 0) { View_setLayoutProperty(name, i, d, opt = 0) {
Local a, l, v Local a, l, v
a := False
v := Monitor_#%Manager_aMonitor%_aView_#1 v := Monitor_#%Manager_aMonitor%_aView_#1
l := View_#%Manager_aMonitor%_#%v%_layout_#1 l := View_#%Manager_aMonitor%_#%v%_layout_#1
If Tiler_isActive(Manager_aMonitor, v) { If Tiler_isActive(Manager_aMonitor, v) {