From: Alan Hourihane Date: Wed, 11 Mar 2009 13:33:49 +0000 (+0000) Subject: xdemos: On termination with `esc` close the contexts correctly. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b6c7db8debaba2446de62efbabb2efb5b374cc5b;p=mesa.git xdemos: On termination with `esc` close the contexts correctly. --- 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: