forked from Shinonome/dots-hyprland
bar: fix autohide's hover region not working on hyprland 0.51 (#1994)
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user