My configuration of sxmo fork of suckless dwm.

git clone git://watertao.xyz/programs/sxmo-dwm.git

commit 4e5c060a207eafd86fc9cd68c4dab9bdefbfe51d
parent 936e072e89373a65cce6d70c0dad79731583b326
Author: Maarten van Gompel <proycon@anaproy.nl>
Date:   Mon,  8 Mar 2021 21:03:50 +0100

minor style fixes after xresources patch

Diffstat:
Mdwm.c | 17+++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/dwm.c b/dwm.c @@ -259,6 +259,7 @@ static void clienttagpush(const Arg *arg); static void shiftview(const Arg *arg); static void pushup(const Arg *arg); static void pushdown(const Arg *arg); +static void readxresources(); static pid_t getparentprocess(pid_t p); static int isdescprocess(pid_t p, pid_t c); @@ -1919,17 +1920,17 @@ setup(void) drw = drw_create(dpy, screen, root, sw, sh); readxresources(); - /* Apply defaults to font and colors*/ - if ( !fonts[0] ) - fonts[0] = strdup(defaultfonts[0]); - if ( !fonts[1] ) - fonts[1] = strdup(defaultfonts[1]); - for (i = 0; i <= SchemeTabInactive; ++i){ + /* Apply defaults to font and colors*/ + if ( !fonts[0] ) + fonts[0] = strdup(defaultfonts[0]); + if ( !fonts[1] ) + fonts[1] = strdup(defaultfonts[1]); + for (i = 0; i <= SchemeTabInactive; ++i){ for (j = 0; j <= ColBorder; ++j){ if ( !colors[i][j] ) colors[i][j] = strdup(defaultcolors[i][j]); } - } + } if (!drw_fontset_create(drw, fonts + (iswide() ? 1: 0), LENGTH(fonts) - (iswide() ? 1 : 0))) @@ -2664,7 +2665,7 @@ zoom(const Arg *arg) void -readxresources(void) { +readxresources() { XrmInitialize(); char* xrm;