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 id: hoverMaskRegion
anchors { anchors {
fill: barContent fill: barContent
topMargin: -1 topMargin: -Config.options.bar.autoHide.hoverRegionWidth
bottomMargin: -1 bottomMargin: -Config.options.bar.autoHide.hoverRegionWidth
} }
} }
@@ -149,6 +149,7 @@ Singleton {
property JsonObject bar: JsonObject { property JsonObject bar: JsonObject {
property JsonObject autoHide: JsonObject { property JsonObject autoHide: JsonObject {
property bool enable: false property bool enable: false
property int hoverRegionWidth: 2
property bool pushWindows: false property bool pushWindows: false
property JsonObject showWhenPressingSuper: JsonObject { property JsonObject showWhenPressingSuper: JsonObject {
property bool enable: true property bool enable: true
@@ -82,8 +82,8 @@ Scope {
id: hoverMaskRegion id: hoverMaskRegion
anchors { anchors {
fill: barContent fill: barContent
leftMargin: -1 leftMargin: -Config.options.bar.autoHide.hoverRegionWidth
rightMargin: -1 rightMargin: -Config.options.bar.autoHide.hoverRegionWidth
} }
} }