From 13df66b649114088c52e8a8e4d3ae86638751da6 Mon Sep 17 00:00:00 2001 From: arzafran Date: Mon, 12 Oct 2026 15:42:52 -0300 Subject: [PATCH] docs: correct titlebar drag comment now that the main window is movable --- Sources/WindowSwizzles.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Sources/WindowSwizzles.swift b/Sources/WindowSwizzles.swift index d8f6a1e3..a186a097 100644 --- a/Sources/WindowSwizzles.swift +++ b/Sources/WindowSwizzles.swift @@ -131,8 +131,9 @@ extension NSWindow { // The card's dead top-edge sliver (the padding-ring WindowDragHandleView // mount in ContentView.swift doesn't fully cover it -- AppKit's hit-test // bottoms out at the bare content host there) has no native drag: - // isMovable=false and isMovableByWindowBackground=false disable AppKit's - // own titlebar drag globally. Handle it here for genuine unclaimed + // MainWindowHostingView returns false from mouseDownCanMoveWindow and + // isMovableByWindowBackground is false, so AppKit never starts its own + // titlebar drag there. Handle it here for genuine unclaimed // background only -- real controls (traffic lights, titlebar accessory // buttons) and real content (terminal surfaces, bonsplit's tab bar, which // are portal-hosted outside contentView's subtree by design) keep their