feat(spawn): remove the spawn function

Window Manager is just to manage the windows, nothing else.
This commit is contained in:
Anas Elgarhy 2023-11-20 00:59:47 +02:00
parent ab0aea1d09
commit 0dce78d77f

View file

@ -1654,20 +1654,6 @@ sigchld(int unused) {
}
}
void
spawn(const Arg *arg) {
if (arg->v == dmenucmd)
dmenumon[0] = '0' + selmon->num;
if (fork() == 0) {
if (dpy)
close(ConnectionNumber(dpy));
setsid();
execvp(((char **) arg->v)[0], (char **) arg->v);
fprintf(stderr, "archy-dwm: execvp %s", ((char **) arg->v)[0]);
perror(" failed");
exit(EXIT_SUCCESS);
}
}
void
tag(const Arg *arg) {