AH-185 fixed bug when restoring window from maximized.