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
1 changed files with 1 additions and 1 deletions

2
main.c
View File

@ -739,7 +739,7 @@ void run(void)
break; break;
case ClientMessage: case ClientMessage:
if ((Atom) ev.xclient.data.l[0] == atoms[ATOM_WM_DELETE_WINDOW]) if ((Atom) ev.xclient.data.l[0] == atoms[ATOM_WM_DELETE_WINDOW])
return; cmds[g_quit].func(0);
break; break;
case ConfigureNotify: case ConfigureNotify:
if (win_configure(&win, &ev.xconfigure)) { if (win_configure(&win, &ev.xconfigure)) {