Fix minimal mode workspace tab clicks on Intel#2650
Fix minimal mode workspace tab clicks on Intel#2650austinywang wants to merge 2 commits intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
This review could not be run because your cubic account has exceeded the monthly review limit. If you need help restoring access, please contact contact@cubic.dev. |
📝 WalkthroughWalkthroughA simple override in Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Greptile SummaryThis PR fixes workspace tab interactions in minimal mode on Intel by overriding Confidence Score: 5/5Safe to merge — minimal one-line fix consistent with established codebase patterns; existing drag infrastructure is unaffected The change is a single property override matching the existing pattern in NonDraggableHostingView, TitlebarLeadingInsetPassthroughView, DraggableFolderNSView, and others. Window dragging is already handled exclusively through WindowDragHandleView with explicit performDrag calls, and the window is created with isMovable = false and isMovableByWindowBackground = false. No P1 or P0 findings. No files require special attention Important Files Changed
Sequence DiagramsequenceDiagram
participant U as User (Intel)
participant AK as AppKit
participant MWHV as MainWindowHostingView
participant DV as DraggableView (WindowDragHandle)
participant SUI as SwiftUI WorkspaceTab
Note over MWHV: mouseDownCanMoveWindow = false (new)
U->>AK: leftMouseDown on titlebar band
AK->>MWHV: mouseDownCanMoveWindow?
MWHV-->>AK: false — skip window drag
AK->>SUI: event propagates to SwiftUI
SUI-->>U: tab hover/click/right-click works
Note over DV: Explicit drag path (unchanged)
U->>AK: leftMouseDown on empty titlebar
AK->>DV: hitTest → captures hit
DV->>AK: window.performDrag(with: event)
AK-->>U: window drag works
Reviews (1): Last reviewed commit: "Fix minimal mode workspace tab clicks" | Re-trigger Greptile |
…-2633-minimal-mode-tab-switching
Summary
Fixes #2633
Root Cause
MainWindowHostingViewinherits AppKit's defaultmouseDownCanMoveWindowbehavior. In minimal mode, the workspace tab strip sits in the titlebar band, so AppKit can treat those hits as window-drag candidates before SwiftUI receives them. On the reported Intel setup, that leaves the top workspace tabs without hover, click, or right-click interaction. The window already uses explicit drag handles for draggable titlebar space, so marking the root hosting view as non-draggable is the minimal fix.Summary by cubic
Restore workspace and pane tab clicks in minimal mode on Intel by marking
MainWindowHostingViewas non-draggable so titlebar events reach SwiftUI instead of AppKit drag handling, while window dragging still works via the existing drag handles (fixes #2633).Written for commit ee88d7c. Summary will update on new commits.
Summary by CodeRabbit
Note
Low Risk
Low risk: a small AppKit override that only changes mouse-down window-drag behavior on the root hosting view, which could slightly affect drag affordances but avoids data/security impact.
Overview
Fixes minimal-mode workspace/pane tab interactions by overriding
MainWindowHostingView.mouseDownCanMoveWindowtofalse, ensuring clicks in the titlebar band are delivered to SwiftUI instead of being captured as window-drag gestures.Reviewed by Cursor Bugbot for commit ee88d7c. Bugbot is set up for automated code reviews on this repo. Configure here.