aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index 21d69bc..61f728f 100644
--- a/main.c
+++ b/main.c
@@ -767,6 +767,9 @@ void run(void)
if ((Atom) ev.xclient.data.l[0] == atoms[ATOM_WM_DELETE_WINDOW])
cmds[g_quit].func(0);
break;
+ case DestroyNotify:
+ exit(EXIT_FAILURE);
+ break;
case ConfigureNotify:
if (win_configure(&win, &ev.xconfigure)) {
if (mode == MODE_IMAGE) {