Added an option to make HyprPanel compatible with Hyprland tearing. (#243)

* Adding an option to make HyprPanel compatible with Hyprland tearing.

* Added bar to Tearing Compatibility checks
This commit is contained in:
Jas Singh
2024-09-10 00:58:27 -07:00
committed by GitHub
parent 4721b4fbf9
commit af51aa838d
6 changed files with 41 additions and 15 deletions

View File

@@ -40,7 +40,7 @@ export default () => {
return mon;
}
),
layer: "overlay",
layer: options.tear.bind("value").as(tear => tear ? "top" : "overlay"),
anchor: position.bind("value").as(v => getPosition(v)),
exclusivity: "normal",
child: Widget.Box({