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