From 39df1ca4ada8374da4b0c3f29ee8d284f1a95752 Mon Sep 17 00:00:00 2001 From: bakkeby Date: Mon, 5 Apr 2021 08:14:27 +0200 Subject: Initialise gaps for pertag arrays when monitor is created ref. #106 --- dwm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'dwm.c') diff --git a/dwm.c b/dwm.c index 5c1898f..31061f6 100644 --- a/dwm.c +++ b/dwm.c @@ -1608,9 +1608,11 @@ createmon(void) #endif // MONITOR_RULES_PATCH m->pertag->sellts[i] = m->sellt; - #if VANITYGAPS_PATCH + #if PERTAG_VANITYGAPS_PATCH && VANITYGAPS_PATCH m->pertag->enablegaps[i] = 1; - #endif // VANITYGAPS_PATCH + m->pertag->gaps[i] = + ((gappoh & 0xFF) << 0) | ((gappov & 0xFF) << 8) | ((gappih & 0xFF) << 16) | ((gappiv & 0xFF) << 24); + #endif // PERTAG_VANITYGAPS_PATCH | VANITYGAPS_PATCH } #endif // PERTAG_PATCH #if INSETS_PATCH -- cgit v1.2.3