Skip to content

Commit

Permalink
Add suppport for displaying Waybar as an overlay layer
Browse files Browse the repository at this point in the history
Configuration option `layer` can now take a value "overlay", which draws the bar
on top of the windows without creating an exclusive zone.
  • Loading branch information
nyyManni authored and xPMo committed Jan 8, 2020
1 parent 9c8d086 commit b44576d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b44576d

Please sign in to comment.