xdemos: On termination with `esc` close the contexts correctly.
authorAlan Hourihane <alanh@vmware.com>
Wed, 11 Mar 2009 13:33:49 +0000 (13:33 +0000)
committerAlan Hourihane <alanh@vmware.com>
Wed, 11 Mar 2009 13:35:27 +0000 (13:35 +0000)
progs/xdemos/manywin.c

index cfea555..ee357f3 100644 (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: