summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Hourihane <[email protected]>2009-03-11 13:33:49 +0000
committerAlan Hourihane <[email protected]>2009-03-11 13:36:26 +0000
commit45c4b4dfbd019260dd0df37ba6776c77149ec7ba (patch)
treec42054517a2895f50b384cfa836005fc3f4b81af
parent2adaec12267767747a22646c759b0d6c1651d3bf (diff)
xdemos: On termination with `esc` close the contexts correctly.
-rw-r--r--progs/xdemos/manywin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/progs/xdemos/manywin.c b/progs/xdemos/manywin.c
index cfea555210a..ee357f32a40 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: