summaryrefslogtreecommitdiffhomepage
path: root/dwm.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2021-04-05 08:14:27 +0200
committerbakkeby <[email protected]>2021-04-05 08:14:27 +0200
commit39df1ca4ada8374da4b0c3f29ee8d284f1a95752 (patch)
tree6f6e842f73bea20876860f15e0ac1b4983006202 /dwm.c
parent521f87af13006ae548f6e3a668a303a792255338 (diff)
downloaddwm-flexipatch-39df1ca4ada8374da4b0c3f29ee8d284f1a95752.tar.gz
dwm-flexipatch-39df1ca4ada8374da4b0c3f29ee8d284f1a95752.zip
Initialise gaps for pertag arrays when monitor is created ref. #106
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c6
1 files changed, 4 insertions, 2 deletions
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