summaryrefslogtreecommitdiffhomepage
path: root/dwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/dwm.c b/dwm.c
index 4ec1182..78476dc 100644
--- a/dwm.c
+++ b/dwm.c
@@ -4284,6 +4284,10 @@ updatebarpos(Monitor *m)
for (bar = m->bar; bar; bar = bar->next) {
bar->bx = m->wx + x_pad;
+ #if BAR_ANYBAR_PATCH && !BAR_ANYBAR_MANAGE_WIDTH_PATCH
+ if (bar->external)
+ continue;
+ #endif // BAR_ANYBAR_PATCH | BAR_ANYBAR_MANAGE_WIDTH_PATCH
bar->bw = m->ww - 2 * x_pad;
}
@@ -4316,9 +4320,8 @@ updatebarpos(Monitor *m)
if (bar->topbar)
m->wy = m->wy + bar->bh + y_pad;
m->wh -= y_pad + bar->bh;
- }
- for (bar = m->bar; bar; bar = bar->next)
bar->by = (bar->topbar ? m->wy - bar->bh : m->wy + m->wh);
+ }
}
void