sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

dwm-noborderfloatingfix-6.2.diff (980B)


      1 From 700b0bdea872f4c00182b2bd925b41fe03f8d222 Mon Sep 17 00:00:00 2001
      2 From: Aidan Hall <aidan.hall@outlook.com>
      3 Date: Tue, 2 Jun 2020 14:41:53 +0000
      4 Subject: [PATCH] Prevents hiding the border if layout is floating.
      5 
      6 ---
      7  dwm.c | 8 ++++++++
      8  1 file changed, 8 insertions(+)
      9 
     10 diff --git a/dwm.c b/dwm.c
     11 index 4465af1..2dd959d 100644
     12 --- a/dwm.c
     13 +++ b/dwm.c
     14 @@ -1282,6 +1282,14 @@ resizeclient(Client *c, int x, int y, int w, int h)
     15  	c->oldw = c->w; c->w = wc.width = w;
     16  	c->oldh = c->h; c->h = wc.height = h;
     17  	wc.border_width = c->bw;
     18 +	if (((nexttiled(c->mon->clients) == c && !nexttiled(c->next))
     19 +	    || &monocle == c->mon->lt[c->mon->sellt]->arrange)
     20 +	    && !c->isfullscreen && !c->isfloating
     21 +	    && NULL != c->mon->lt[c->mon->sellt]->arrange) {
     22 +		c->w = wc.width += c->bw * 2;
     23 +		c->h = wc.height += c->bw * 2;
     24 +		wc.border_width = 0;
     25 +	}
     26  	XConfigureWindow(dpy, c->win, CWX|CWY|CWWidth|CWHeight|CWBorderWidth, &wc);
     27  	configure(c);
     28  	XSync(dpy, False);
     29 -- 
     30 2.26.2
     31