Properly quit when window gets closed; fixes issue #27
This commit is contained in:
parent
e98266b148
commit
1fb3ec576c
2
main.c
2
main.c
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in a new issue