xdemos: On termination with `esc` close the contexts correctly.

This commit is contained in:
Alan Hourihane 2009-03-11 13:33:49 +00:00
parent 5146b3f8fc
commit b6c7db8deb
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ EventLoop(void)
XLookupString(&event.xkey, buf, sizeof(buf), &keySym, &stat);
switch (keySym) {
case XK_Escape:
exit(0);
return;
break;
case XK_d:
case XK_D: