From b44576dd9470b8e415be21a215ee39f66ca5374b Mon Sep 17 00:00:00 2001 From: Henrik Nyman Date: Wed, 30 Oct 2019 20:27:06 +0200 Subject: [PATCH] Add suppport for displaying Waybar as an overlay layer Configuration option `layer` can now take a value "overlay", which draws the bar on top of the windows without creating an exclusive zone. --- src/bar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bar.cpp b/src/bar.cpp index 7b9e930705..2e9f30ddfd 100644 --- a/src/bar.cpp +++ b/src/bar.cpp @@ -218,7 +218,7 @@ void waybar::Bar::onMap(GdkEventAny* ev) { void waybar::Bar::setExclusiveZone(uint32_t width, uint32_t height) { auto zone = 0; - if (visible) { + if (visible && config["layer"] != "overlay") { // exclusive zone already includes margin for anchored edge, // only opposite margin should be added if (vertical) {