From a2d8f7761ec516e9c44f331b2ee298c6e57e98b1 Mon Sep 17 00:00:00 2001 From: trav Date: Mon, 9 Nov 2026 16:37:24 -0800 Subject: [PATCH] Title bar: window buttons on the left are clickable again The centred title spans the whole bar and inherits its drag region; it came after the left button group, so its drag covered their no-drag and a click started a window move instead. The title now goes first. Co-Authored-By: Claude Opus 5.5 --- src/renderer/src/components/Frame.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/components/Frame.tsx b/src/renderer/src/components/Frame.tsx index d6fe5ba..63be9d4 100644 --- a/src/renderer/src/components/Frame.tsx +++ b/src/renderer/src/components/Frame.tsx @@ -218,8 +218,12 @@ function TitleBar({ title, maximized }: { title: string; maximized: boolean }) { ) return (
- {side(layout[0])} + {/* The title spans the whole bar (to stay centred) and inherits its + drag region, so it goes first: drag regions stack in page order, + and the buttons' no-drag must land on top of it or clicks on them + start a window move instead. */}
{title}
+ {side(layout[0])} {side(layout[1])}
)