about summary refs log tree commit diff
path: root/patches
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-06-09 20:05:53 +0200
committerManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-06-09 20:05:53 +0200
commit27cd3fa703d4aa9b5ca427b496d809f169214904 (patch)
tree8e3684ad2239ee4d103ba6b76ae72ef17188e493 /patches
parentChanged gap pixels (diff)
downloaddwm-27cd3fa703d4aa9b5ca427b496d809f169214904.tar.gz
dwm-27cd3fa703d4aa9b5ca427b496d809f169214904.tar.bz2
dwm-27cd3fa703d4aa9b5ca427b496d809f169214904.zip
Modified gaps patch [Patch]
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;