workaround for hyprland's 1px dead right edge

This commit is contained in:
end-4
2025-09-11 15:48:44 +02:00
parent 1999f17443
commit 6118589248
4 changed files with 23 additions and 1 deletions
+9 -1
View File
@@ -75,10 +75,17 @@ Scope {
right: true
}
margins {
right: (Config.options.interactions.deadPixelWorkaround.enable && barRoot.anchors.right) * -1
}
MouseArea {
id: hoverRegion
hoverEnabled: true
anchors.fill: parent
anchors {
fill: parent
rightMargin: (Config.options.interactions.deadPixelWorkaround.enable && barRoot.anchors.right) * 1
}
Item {
id: hoverMaskRegion
@@ -100,6 +107,7 @@ Scope {
bottom: undefined
topMargin: (Config?.options.bar.autoHide.enable && !mustShow) ? -Appearance.sizes.barHeight : 0
bottomMargin: 0
rightMargin: (Config.options.interactions.deadPixelWorkaround.enable && barRoot.anchors.right) * -1
}
Behavior on anchors.topMargin {
animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this)