xdemos: On termination with `esc` close the contexts correctly.
This commit is contained in:
parent
5146b3f8fc
commit
b6c7db8deb
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue