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 -1
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: