mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-30 06:57:49 -04:00
dankbar: bind clickthrough mask regions to section items (#3595)
This commit is contained in:
1 parent
d5c96a1756
commit
a4e500bc00
1 file changed
+4
-20
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user