diff options
| author | Bakkeby <[email protected]> | 2022-06-10 13:25:21 +0200 |
|---|---|---|
| committer | Bakkeby <[email protected]> | 2022-06-10 13:25:21 +0200 |
| commit | 54070d7e51aec3d35c19cd2fe855c861af2fc21b (patch) | |
| tree | 3ba49af4a82b2a0b93be443076841dd93f6a70cf | |
| parent | c553f93b528449ed2e7d4b424f063ef3c1d3d8f6 (diff) | |
| download | dwm-flexipatch-54070d7e51aec3d35c19cd2fe855c861af2fc21b.tar.gz dwm-flexipatch-54070d7e51aec3d35c19cd2fe855c861af2fc21b.zip | |
vanitygaps + pertag: enablegaps should be retrieved from the current monitor, not the selected monitor ref. #258
| -rw-r--r-- | patch/vanitygaps.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 |
