28 lines
652 B
Plaintext
28 lines
652 B
Plaintext
--- dwm.c
|
|
+++ dwm.c
|
|
@@ -205,6 +205,8 @@ static void setup(void);
|
|
static void seturgent(Client *c, int urg);
|
|
static void showhide(Client *c);
|
|
static void sigchld(int unused);
|
|
+static void sighup(int unused);
|
|
+static void sigterm(int unused);
|
|
static void spawn(const Arg *arg);
|
|
static void tag(const Arg *arg);
|
|
static void tagmon(const Arg *arg);
|
|
@@ -1249,6 +1252,7 @@ propertynotify(XEvent *e)
|
|
void
|
|
quit(const Arg *arg)
|
|
{
|
|
+ if(arg->i) restart = 1;
|
|
running = 0;
|
|
}
|
|
|
|
@@ -2157,6 +2178,7 @@ main(int argc, char *argv[])
|
|
setup();
|
|
scan();
|
|
run();
|
|
+ if(restart) execvp(argv[0], argv);
|
|
cleanup();
|
|
XCloseDisplay(dpy);
|
|
return EXIT_SUCCESS;
|