aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-02-09 10:01:49 +0100
committerBert <ber.t@gmx.com>2011-02-09 10:01:49 +0100
commitd731741f046eecdf2788154b0387baf8f2e67007 (patch)
tree5f554c26bde98a11a2487297d2ffd5d6cd67e936 /main.c
parenta5335e8ddde6aa53e6f625f5ce1ffd6f7ec098c5 (diff)
Handle WM_DELETE_WINDOW messages correctly, thanks to fungt
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.c b/main.c
index 379b7bd..b0efc68 100644
--- a/main.c
+++ b/main.c
@@ -475,6 +475,10 @@ void run() {
timeout = 1;
}
break;
+ case ClientMessage:
+ if ((Atom) ev.xclient.data.l[0] == wm_delete_win)
+ return;
+ break;
}
}
}