From 1fb3ec576ca4de2056a914b8bc3fd5ba8e99429e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bert=20M=C3=BCnnich?= Date: Wed, 17 May 2017 15:51:47 +0200 Subject: [PATCH] Properly quit when window gets closed; fixes issue #27 --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index d903c7b..9e337f4 100644 --- a/main.c +++ b/main.c @@ -739,7 +739,7 @@ void run(void) break; case ClientMessage: if ((Atom) ev.xclient.data.l[0] == atoms[ATOM_WM_DELETE_WINDOW]) - return; + cmds[g_quit].func(0); break; case ConfigureNotify: if (win_configure(&win, &ev.xconfigure)) {