From a4e500bc0083ed234a8db8c6f33a2c7987af3352 Mon Sep 17 00:00:00 2001 From: Feng Yu Date: Mon, 28 Sep 2026 06:24:21 +0800 Subject: [PATCH] dankbar: bind clickthrough mask regions to section items (#3595) --- quickshell/Modules/DankBar/DankBarWindow.qml | 24 ++++---------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/quickshell/Modules/DankBar/DankBarWindow.qml b/quickshell/Modules/DankBar/DankBarWindow.qml index 1023aab92..98ac40eb3 100644 --- a/quickshell/Modules/DankBar/DankBarWindow.qml +++ b/quickshell/Modules/DankBar/DankBarWindow.qml @@ -116,17 +116,10 @@ PanelWindow { mask: Region { item: body.clickThroughEnabled || (isIsland && !body.islandBandInteractive) ? null : body.inputMaskItem + // Item-bound: a mapToItem snapshot froze mid-churn on output reconnect, leaving the trailing + // section unclickable (#3594). barRevealed: same ancestor-transform caveat as the island regions. Region { - readonly property var r: barWindow.sectionMasked ? body.leadingSectionRect : { - "x": 0, - "y": 0, - "w": 0, - "h": 0 - } - x: r.x - y: r.y - width: r.w - height: r.h + item: barWindow.sectionMasked && body.barRevealed ? body._leftSection : null } Region { @@ -143,16 +136,7 @@ PanelWindow { } Region { - readonly property var r: barWindow.sectionMasked ? body.trailingSectionRect : { - "x": 0, - "y": 0, - "w": 0, - "h": 0 - } - x: r.x - y: r.y - width: r.w - height: r.h + item: barWindow.sectionMasked && body.barRevealed ? body._rightSection : null } Region {