summaryrefslogtreecommitdiffhomepage
path: root/patch/vanitygaps.c
diff options
context:
space:
mode:
Diffstat (limited to 'patch/vanitygaps.c')
-rw-r--r--patch/vanitygaps.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/patch/vanitygaps.c b/patch/vanitygaps.c
index be2ef08..757aa4d 100644
--- a/patch/vanitygaps.c
+++ b/patch/vanitygaps.c
@@ -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);
}