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
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user