fix problems restoring state on restart
fix problems restoring state on restart

bedna-KU/icewm,dicej/icewm,dicej/icewm,jinn-alt/icewm,dicej/icewm,dicej/icewm,bedna-KU/icewm,bedna-KU/icewm,jinn-alt/icewm,jinn-alt/icewm