diff options
author | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-06-09 20:05:53 +0200 |
---|---|---|
committer | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-06-09 20:05:53 +0200 |
commit | 27cd3fa703d4aa9b5ca427b496d809f169214904 (patch) | |
tree | 8e3684ad2239ee4d103ba6b76ae72ef17188e493 | |
parent | Changed gap pixels (diff) | |
download | dwm-27cd3fa703d4aa9b5ca427b496d809f169214904.tar.gz dwm-27cd3fa703d4aa9b5ca427b496d809f169214904.tar.bz2 dwm-27cd3fa703d4aa9b5ca427b496d809f169214904.zip |
Modified gaps patch [Patch]
-rw-r--r-- | dwm.c | 11 | ||||
-rw-r--r-- | patches/dwm-muhgaps-6.2.diff (renamed from patches/dwm-uselessgap-6.1.diff) | 11 |
2 files changed, 4 insertions, 18 deletions
diff --git a/dwm.c b/dwm.c index 0472c4e..d177a8d 100644 --- a/dwm.c +++ b/dwm.c @@ -1251,15 +1251,8 @@ resizeclient(Client *c, int x, int y, int w, int h) 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; 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; |