Fix minimal-mode top-bar drag pass-through
Summary
- add regression tests that assert portal hosts yield the minimal tab-strip drag region
- route browser and terminal portal hit-testing through the underlying Bonsplit tab strip below the titlebar band
- keep the native titlebar interaction band and empty minimal top strip available for window dragging again
Root Cause
In minimal mode, the browser and terminal portal hosts sat above the Bonsplit tab strip and continued to claim pointer hits just below the native titlebar interaction band. That prevented empty top-bar drags from reaching the minimal-mode window-drag handlers behind the portals.
Testing
- built with
./scripts/reload.sh --tag issue-3119-minimal-drag-sidebar --launch - local tests not run per repo policy
Closes #3119
[!NOTE]
Medium Risk
Adjusts AppKit hit-testing in window-level browser/terminal portal hosts; mistakes could regress click/drag routing around the titlebar/tab strip and split dividers, but scope is limited to pointer-event routing.
Overview
Restores minimal-mode top-bar drag/click behavior by teaching the browser and terminal portal host views to yield pointer hit-testing not only to the native/custom titlebar band, but also to the underlying Bonsplit minimal tab strip.
This introduces shared BonsplitTabBarPassThrough helpers (including a registry-based hit check with a view-tree fallback) and adds regression tests asserting the portal hosts return nil for hits in the tab strip area just below the titlebar interaction band.
Reviewed by Cursor Bugbot for commit bd54dad85dc7af1be380e0f868544c01dfdfb9fe. Bugbot is set up for automated code reviews on this repo. Configure here.
Summary by cubic
Fixes minimal-mode top-bar dragging by letting browser and terminal portal hosts pass pointer events through to the native titlebar band and the underlying Bonsplit minimal tab strip. Restores window drag behavior just below the titlebar. Closes #3119.
- Bug Fixes
- Route portal hit-testing via shared
BonsplitTabBarPassThroughhelpers (registry check with view-tree fallback). - Respect the native/custom titlebar interaction band for window drags.
- Add regression tests asserting portal hosts return nil hits in the minimal tab strip area for both browser and terminal.
- Route portal hit-testing via shared
Summary by CodeRabbit
-
Bug Fixes
- Improved pointer event handling in minimal-mode pane tab bar regions to correctly pass through events to underlying UI elements.
- Enhanced detection of tab bar interaction areas to prevent unintended event interception.
-
Tests
- Added regression tests for pointer hit-testing behavior in tab bar areas.