Fix some issues with window states when JWM starts and restarts.