Primary Fix: Add fullscreen detection guard to HiddenTitlebarTerminalWindow.reapplyHiddenStyle()
Implementation Steps:
- Add
fullscreenActive property to detect both native and non-native fullscreen states
- Guard
reapplyHiddenStyle() to skip execution during fullscreen
- Test the fix with hidden titlebar + non-native fullscreen combination
Alternative approaches if primary fix insufficient:
- Make
reapplyHiddenStyle() idempotent by preserving existing style mask state
- Add explicit focus restoration after style mask changes
Verification:
- Hidden titlebar window → toggle non-native fullscreen via keybind → run
echo hi → confirm window remains focused