Mesa (gallium-mesa-7.4): xdemos: On termination with `esc` close the contexts correctly.
Alan Hourihane
alanh at kemper.freedesktop.org
Wed Mar 11 13:37:16 UTC 2009
Module: Mesa
Branch: gallium-mesa-7.4
Commit: 4a7688c330f2ef75aefb91729624dac4e0e61630
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4a7688c330f2ef75aefb91729624dac4e0e61630
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