window: fix rotation