From 54070d7e51aec3d35c19cd2fe855c861af2fc21b Mon Sep 17 00:00:00 2001 From: Bakkeby Date: Fri, 10 Jun 2022 13:25:21 +0200 Subject: [PATCH] vanitygaps + pertag: enablegaps should be retrieved from the current monitor, not the selected monitor ref. #258 --- patch/vanitygaps.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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