summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--patch/vanitygaps.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/patch/vanitygaps.c b/patch/vanitygaps.c
index d322ded..303d4df 100644
--- a/patch/vanitygaps.c
+++ b/patch/vanitygaps.c
@@ -96,7 +96,11 @@ togglegaps(const Arg *arg)
drawbarwin(systray->bar);
#endif // BAR_SYSTRAY_PATCH
#endif // BAR_PADDING_VANITYGAPS_PATCH
+ #if PERTAG_VANITYGAPS_PATCH && PERTAG_PATCH
+ arrange(selmon);
+ #else
arrange(NULL);
+ #endif // PERTAG_VANITYGAPS_PATCH
}
static void
@@ -188,7 +192,7 @@ getgaps(Monitor *m, int *oh, int *ov, int *ih, int *iv, unsigned int *nc)
{
unsigned int n, oe, ie;
#if PERTAG_VANITYGAPS_PATCH && PERTAG_PATCH
- oe = ie = selmon->pertag->enablegaps[selmon->pertag->curtag];
+ oe = ie = m->pertag->enablegaps[m->pertag->curtag];
#else
oe = ie = enablegaps;
#endif // PERTAG_VANITYGAPS_PATCH