Add a new patch to integrate vanity gaps with bar padding

This commit is contained in:
Utkarsh Verma
2021-12-26 18:29:55 +05:30
parent 40d30e5d1b
commit 8f401e1d81
3 changed files with 24 additions and 1 deletions

View File

@@ -86,6 +86,16 @@ togglegaps(const Arg *arg)
#else
enablegaps = !enablegaps;
#endif // PERTAG_VANITYGAPS_PATCH
#if BAR_GAPS_PADDING_PATCH
updatebarpos(selmon);
Bar *bar = selmon->bar;
XMoveResizeWindow(dpy, bar->win, bar->bx, bar->by, bar->bw + gappoh, bar->bh);
#if BAR_SYSTRAY_PATCH
drawbarwin(systray->bar);
#endif // BAR_SYSTRAY_PATCH
#endif // BAR_GAPS_PADDING_PATCH
arrange(NULL);
}