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 cfea555210af8c615803a4347baa6260f0ef2eca..ee357f32a402c3e1411501136131c28c08b6cdb1 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: