Handle fullscreen state in `apply_layout`