Properly quit when window gets closed; fixes issue #27

This commit is contained in:
Bert Münnich 2017-05-17 15:51:47 +02:00
parent e98266b148
commit 1fb3ec576c

2
main.c
View File

@ -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)) {