Changed the things you pointed out. About the extra check in stateChangeNotify, I hope you meant to check that we call restoreWindow only if the window was only vertically maximized. The other case (semi-maximized->maximized) should'n be possible as the previous if checks that the window is not maximized at all.
Changed the things you pointed out. About the extra check in stateChangeNotify, I hope you meant to check that we call restoreWindow only if the window was only vertically maximized. The other case (semi-maximized ->maximized) should'n be possible as the previous if checks that the window is not maximized at all.