dwm

[fork] dynamic window manager
Log | Files | Refs | README | LICENSE

commit ca451922f6669f6fb403460a31b77f9831792047
parent 771904c96a9e67150f8cbb2a7199c256bc1eb45e
Author: hhvn <dev@hhvn.uk>
Date:   Mon,  7 Feb 2022 17:41:33 +0000

config.h dwm.c: remove unused stuff

Diffstat:
Mconfig.h | 3---
Mdwm.c | 16----------------
2 files changed, 0 insertions(+), 19 deletions(-)

diff --git a/config.h b/config.h @@ -61,9 +61,6 @@ static const Layout layouts[] = { #define LAYOUT(KEY, LAYOUT) \ { MODKEY|AltMask, KEY, setlayout, {.v = &layouts[LAYOUT]} }, -/* helper for spawning shell commands in the pre dwm-5.0 fashion */ -#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } - static Key keys[] = { /* modifier key function argument */ { MODKEY|ShiftMask, XK_Return, zoom, {0} }, diff --git a/dwm.c b/dwm.c @@ -199,7 +199,6 @@ static Client *nexttiled(Client *c); static void pop(Client *); static void propertynotify(XEvent *e); static void quit(const Arg *arg); -static void restart(const Arg *arg); static Monitor *recttomon(int x, int y, int w, int h); static void resize(Client *c, int x, int y, int w, int h, int interact); static void resizeclient(Client *c, int x, int y, int w, int h); @@ -218,7 +217,6 @@ static void setup(void); static void seturgent(Client *c, int urg); static void showhide(Client *c); static void sigchld(int unused); -static void spawn(const Arg *arg); static void tag(const Arg *arg); static void tagmon(const Arg *arg); static void tile(Monitor *); @@ -1688,20 +1686,6 @@ sigchld(int unused) } void -spawn(const Arg *arg) -{ - if (fork() == 0) { - if (dpy) - close(ConnectionNumber(dpy)); - setsid(); - execvp(((char **)arg->v)[0], (char **)arg->v); - fprintf(stderr, "dwm: execvp %s", ((char **)arg->v)[0]); - perror(" failed"); - exit(EXIT_SUCCESS); - } -} - -void tag(const Arg *arg) { if (selmon->sel && arg->ui & TAGMASK) {