summaryrefslogtreecommitdiffhomepage
path: root/patch/pertag.c
diff options
context:
space:
mode:
Diffstat (limited to 'patch/pertag.c')
-rw-r--r--patch/pertag.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/patch/pertag.c b/patch/pertag.c
index 3ca7ab2..f8165a6 100644
--- a/patch/pertag.c
+++ b/patch/pertag.c
@@ -22,6 +22,9 @@ struct Pertag {
#if VANITYGAPS_PATCH
int enablegaps[NUMTAGS + 1];
#endif // VANITYGAPS_PATCH
+ #if PERTAG_VANITYGAPS_PATCH && VANITYGAPS_PATCH
+ unsigned int gaps[NUMTAGS + 1];
+ #endif // PERTAG_VANITYGAPS_PATCH | VANITYGAPS_PATCH
};
void
@@ -56,6 +59,13 @@ pertagview(const Arg *arg)
selmon->lt[selmon->sellt] = selmon->pertag->ltidxs[selmon->pertag->curtag][selmon->sellt];
selmon->lt[selmon->sellt^1] = selmon->pertag->ltidxs[selmon->pertag->curtag][selmon->sellt^1];
+ #if PERTAG_VANITYGAPS_PATCH && VANITYGAPS_PATCH
+ selmon->gappoh = (selmon->pertag->gaps[selmon->pertag->curtag] & 0xff) >> 0;
+ selmon->gappov = (selmon->pertag->gaps[selmon->pertag->curtag] & 0xff00) >> 8;
+ selmon->gappih = (selmon->pertag->gaps[selmon->pertag->curtag] & 0xff0000) >> 16;
+ selmon->gappiv = (selmon->pertag->gaps[selmon->pertag->curtag] & 0xff000000) >> 24;
+ #endif // PERTAG_VANITYGAPS_PATCH | VANITYGAPS_PATCH
+
#if FLEXTILE_DELUXE_LAYOUT
selmon->ltaxis[LAYOUT] = selmon->pertag->ltaxis[selmon->pertag->curtag][LAYOUT];
selmon->ltaxis[MASTER] = selmon->pertag->ltaxis[selmon->pertag->curtag][MASTER];