timob-14751: Fix window opening states.