bar: fix autohide's hover region not working on hyprland 0.51 (#1994)

This commit is contained in:
end-4
2025-09-18 07:52:08 +02:00
parent c41364fb16
commit 47725ea4b5
3 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -93,8 +93,8 @@ Scope {
id: hoverMaskRegion
anchors {
fill: barContent
topMargin: -1
bottomMargin: -1
topMargin: -Config.options.bar.autoHide.hoverRegionWidth
bottomMargin: -Config.options.bar.autoHide.hoverRegionWidth
}
}
@@ -149,6 +149,7 @@ Singleton {
property JsonObject bar: JsonObject {
property JsonObject autoHide: JsonObject {
property bool enable: false
property int hoverRegionWidth: 2
property bool pushWindows: false
property JsonObject showWhenPressingSuper: JsonObject {
property bool enable: true
@@ -82,8 +82,8 @@ Scope {
id: hoverMaskRegion
anchors {
fill: barContent
leftMargin: -1
rightMargin: -1
leftMargin: -Config.options.bar.autoHide.hoverRegionWidth
rightMargin: -Config.options.bar.autoHide.hoverRegionWidth
}
}