about summary refs log tree commit diff
path: root/dwm.c
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-06-11 09:56:27 +0200
committerManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-06-11 09:56:27 +0200
commit6febd00eb45dfede7f4582a584384263a8a9a29a (patch)
treee156e55f865c4f103b66b6b7f08867255f1e7c7d /dwm.c
parentImproved status bar (diff)
downloaddwm-6febd00eb45dfede7f4582a584384263a8a9a29a.tar.gz
dwm-6febd00eb45dfede7f4582a584384263a8a9a29a.tar.bz2
dwm-6febd00eb45dfede7f4582a584384263a8a9a29a.zip
Added nomonocleborders [Patch]
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/dwm.c b/dwm.c
index 60393f3..cdba5eb 100644
--- a/dwm.c
+++ b/dwm.c
@@ -328,6 +328,9 @@ applysizehints(Client *c, int *x, int *y, int *w, int *h, int interact)
 	int baseismin;
 	Monitor *m = c->mon;
 
+  if (&monocle == c->mon->lt[c->mon->sellt]->arrange)
+    return 1;
+
 	/* set minimum possible */
 	*w = MAX(1, *w);
 	*h = MAX(1, *h);
@@ -1280,6 +1283,11 @@ resizeclient(Client *c, int x, int y, int w, int h)
   c->oldw = c->w; c->w = wc.width = w;
   c->oldh = c->h; c->h = wc.height = h;
 	wc.border_width = c->bw;
+  if ((&monocle == c->mon->lt[c->mon->sellt]->arrange) && (!c->isfloating)) {
+    wc.border_width = 0;
+    c->w = wc.width += c->bw * 2;
+    c->h = wc.height += c->bw * 2;
+  }
 
 	XConfigureWindow(dpy, c->win, CWX|CWY|CWWidth|CWHeight|CWBorderWidth, &wc);
 	configure(c);