Return value != 0 on Escape

This commit is contained in:
Bert 2011-01-17 19:57:58 +01:00
parent b5526c9db0
commit 75b143a5b0

View File

@ -47,6 +47,9 @@ void on_keypress(app_t *app, XEvent *ev) {
keysym = XKeycodeToKeysym(dpy, (KeyCode) kev->keycode, 0); keysym = XKeycodeToKeysym(dpy, (KeyCode) kev->keycode, 0);
switch (keysym) { switch (keysym) {
case XK_Escape:
app_quit(app);
exit(1);
case XK_q: case XK_q:
app_quit(app); app_quit(app);
exit(0); exit(0);