summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2021-05-19 12:33:14 +0200
committerbakkeby <[email protected]>2021-05-19 12:33:14 +0200
commite1f28aae25865fd109f3e20f31b101afd5a80952 (patch)
tree1fe2e8d1155a6e3ad9ce2c8118a8a8c52ea1898f
parent28c4d0eab28c5f1fb2095814fd93c449ca449289 (diff)
downloaddwm-flexipatch-e1f28aae25865fd109f3e20f31b101afd5a80952.tar.gz
dwm-flexipatch-e1f28aae25865fd109f3e20f31b101afd5a80952.zip
vanitygaps: fix for gaps not being enabled by default when pertag is used ref. #147
-rw-r--r--dwm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/dwm.c b/dwm.c
index 246b2ef..672c03a 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1653,11 +1653,13 @@ createmon(void)
#endif // MONITOR_RULES_PATCH
m->pertag->sellts[i] = m->sellt;
- #if PERTAG_VANITYGAPS_PATCH && VANITYGAPS_PATCH
+ #if VANITYGAPS_PATCH
m->pertag->enablegaps[i] = 1;
+ #if PERTAG_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_VANITYGAPS_PATCH
+ #endif // VANITYGAPS_PATCH
}
#endif // PERTAG_PATCH
#if INSETS_PATCH