From b6c7db8debaba2446de62efbabb2efb5b374cc5b Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Wed, 11 Mar 2009 13:33:49 +0000 Subject: [PATCH] xdemos: On termination with `esc` close the contexts correctly. --- progs/xdemos/manywin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.30.2