diff options
Diffstat (limited to 'patches')
-rw-r--r-- | patches/dwm-muhgaps-6.2.diff (renamed from patches/dwm-uselessgap-6.1.diff) | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/patches/dwm-uselessgap-6.1.diff b/patches/dwm-muhgaps-6.2.diff index 28cb369..2018ba3 100644 --- a/patches/dwm-uselessgap-6.1.diff +++ b/patches/dwm-muhgaps-6.2.diff @@ -33,15 +33,8 @@ + if (c->isfloating || selmon->lt[selmon->sellt]->arrange == NULL) { + gapincr = gapoffset = 0; + } else { -+ /* Remove border and gap if layout is monocle or only one client */ -+ if (selmon->lt[selmon->sellt]->arrange == monocle || n == 1) { -+ gapoffset = 0; -+ gapincr = -2 * borderpx; -+ wc.border_width = 0; -+ } else { -+ gapoffset = gappx; -+ gapincr = 2 * gappx; -+ } ++ gapoffset = gappx; ++ gapincr = 2 * gappx; + } + + c->oldx = c->x; c->x = wc.x = x + gapoffset; |