From 27cd3fa703d4aa9b5ca427b496d809f169214904 Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Date: Sun, 9 Jun 2019 20:05:53 +0200 Subject: Modified gaps patch [Patch] --- dwm.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'dwm.c') 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; -- cgit 1.4.1