Adding option to enable gaps for monocle layout, ref. issue #11

This commit is contained in:
bakkeby
2020-03-07 17:03:19 +01:00
parent e75decf7de
commit 58ab50845d
5 changed files with 30 additions and 5 deletions

View File

@@ -545,13 +545,13 @@ flextile(Monitor *m)
if (n == 0)
return;
#if VANITYGAPS_PATCH
#if VANITYGAPS_PATCH && !VANITYGAPS_MONOCLE_PATCH
/* No outer gap if full screen monocle */
if (abs(m->ltaxis[MASTER]) == MONOCLE && (abs(m->ltaxis[LAYOUT]) == NO_SPLIT || n <= m->nmaster)) {
oh = 0;
ov = 0;
}
#endif // VANITYGAPS_PATCH
#endif // VANITYGAPS_PATCH && !VANITYGAPS_MONOCLE_PATCH
(&flexlayouts[abs(m->ltaxis[LAYOUT])])->arrange(m, m->wx + ov, m->wy + oh, m->wh - 2*oh, m->ww - 2*ov, ih, iv, n);
return;