fix(dankbar): consume empty-area right clicks (#3127)

* fix(dankbar): consume empty-area right clicks

* fix(dankbar): preserve click-through reveal
This commit is contained in:
Huỳnh Thiện Lộc authored and GitHub committed 2026-08-20 12:27:06 -04:00
1 parent d10ca38651
commit f6259d0ff7
1 file changed
+2 -2
+2 -2
View File
@@ -1045,8 +1045,8 @@ Item {
}
readonly property bool inOverview: CompositorService.isNiri && NiriService.inOverview && barWindow.effectiveOpenOnOverview
hoverEnabled: (barConfig?.autoHide ?? false) && !inOverview && !topBarCore.popoutPinsReveal
acceptedButtons: Qt.NoButton
enabled: (barConfig?.autoHide ?? false) && !inOverview
acceptedButtons: barWindow.clickThroughEnabled ? Qt.NoButton : Qt.RightButton
enabled: !inOverview && ((barConfig?.autoHide ?? false) || !barWindow.clickThroughEnabled)
onPositionChanged: mouse => {
if (!topBarCore.gapEnterSuppressed)
return;