From ae9fb577909b246f0ee7719e2a533737b39b9ca7 Mon Sep 17 00:00:00 2001 From: Daan Goossens Date: Wed, 25 May 2022 16:09:21 +0200 Subject: [PATCH] fix: vertical bar not anchored when width is set --- src/bar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bar.cpp b/src/bar.cpp index 761857a9..f46b7d0f 100644 --- a/src/bar.cpp +++ b/src/bar.cpp @@ -181,7 +181,7 @@ struct GLSSurfaceImpl : public BarSurface, public sigc::trackable { if (vertical_ && height_ > 1) { gtk_layer_set_anchor(window_.gobj(), GTK_LAYER_SHELL_EDGE_BOTTOM, false); gtk_layer_set_anchor(window_.gobj(), GTK_LAYER_SHELL_EDGE_TOP, false); - } else if (width_ > 1) { + } else if (!vertical_ && width_ > 1) { gtk_layer_set_anchor(window_.gobj(), GTK_LAYER_SHELL_EDGE_LEFT, false); gtk_layer_set_anchor(window_.gobj(), GTK_LAYER_SHELL_EDGE_RIGHT, false); }