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 /dwm.c | |
parent | Changed gap pixels (diff) | |
download | dwm-27cd3fa703d4aa9b5ca427b496d809f169214904.tar.gz dwm-27cd3fa703d4aa9b5ca427b496d809f169214904.tar.bz2 dwm-27cd3fa703d4aa9b5ca427b496d809f169214904.zip |
Modified gaps patch [Patch]
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 11 |
1 files changed, 2 insertions, 9 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; |