dwm-noborder-6.2.diff - sites - public wiki contents of suckless.org
 (HTM) git clone git://git.suckless.org/sites
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
       dwm-noborder-6.2.diff (895B)
       ---
            1 From 9102fdb9c670218373bbe83c891c8e8138d6a6f4 Mon Sep 17 00:00:00 2001
            2 From: redacted <redacted@example.com>
            3 Date: Tue, 23 Apr 2019 00:39:27 +0100
            4 Subject: [PATCH] added noborder patch
            5 
            6 ---
            7  dwm.c | 7 +++++++
            8  1 file changed, 7 insertions(+)
            9 
           10 diff --git a/dwm.c b/dwm.c
           11 index 4465af1..685eca1 100644
           12 --- a/dwm.c
           13 +++ b/dwm.c
           14 @@ -1282,6 +1282,13 @@ 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 +                c->w = wc.width += c->bw * 2;
           22 +                c->h = wc.height += c->bw * 2;
           23 +                wc.border_width = 0;
           24 +        }
           25          XConfigureWindow(dpy, c->win, CWX|CWY|CWWidth|CWHeight|CWBorderWidth, &wc);
           26          configure(c);
           27          XSync(dpy, False);
           28 -- 
           29 2.21.0
           30