Loop through all bars

This commit is contained in:
Utkarsh Verma 2021-12-26 19:30:01 +05:30
parent 0cd25db5af
commit 3d081ef5f9
No known key found for this signature in database
GPG Key ID: 817656CF818EFCCC

View File

@ -89,7 +89,8 @@ togglegaps(const Arg *arg)
#if BAR_GAPS_PADDING_PATCH #if BAR_GAPS_PADDING_PATCH
updatebarpos(selmon); updatebarpos(selmon);
Bar *bar = selmon->bar; Bar *bar;
for (bar = selmon->bar; bar; bar = bar->next)
XMoveResizeWindow(dpy, bar->win, bar->bx, bar->by, bar->bw, bar->bh); XMoveResizeWindow(dpy, bar->win, bar->bx, bar->by, bar->bw, bar->bh);
#if BAR_SYSTRAY_PATCH #if BAR_SYSTRAY_PATCH