Mesa (master): xdemos: On termination with `esc` close the contexts correctly.

Alan Hourihane alanh at kemper.freedesktop.org
Wed Mar 11 13:35:43 UTC 2009


Module: Mesa
Branch: master
Commit: b6c7db8debaba2446de62efbabb2efb5b374cc5b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b6c7db8debaba2446de62efbabb2efb5b374cc5b

Author: Alan Hourihane <alanh at vmware.com>
Date:   Wed Mar 11 13:33:49 2009 +0000

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

---

 progs/xdemos/manywin.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/progs/xdemos/manywin.c b/progs/xdemos/manywin.c
index cfea555..ee357f3 100644
--- a/progs/xdemos/manywin.c
+++ b/progs/xdemos/manywin.c
@@ -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:




More information about the mesa-commit mailing list