Return value != 0 on Escape

master
Bert 2011-01-17 19:57:58 +01:00
parent b5526c9db0
commit 75b143a5b0
1 changed files with 3 additions and 0 deletions

View File

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