dankbar: bind clickthrough mask regions to section items (#3595)

This commit is contained in:
Feng Yu authored and GitHub committed 2026-09-27 18:24:21 -04:00
1 parent d5c96a1756
commit a4e500bc00
1 file changed
+4 -20
+4 -20
View File
@@ -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 {