From 75b143a5b0ee62db9b746ecc512855ff9d2f09ff Mon Sep 17 00:00:00 2001 From: Bert Date: Mon, 17 Jan 2011 19:57:58 +0100 Subject: Return value != 0 on Escape --- events.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'events.c') diff --git a/events.c b/events.c index 45a9474..ad41de1 100644 --- a/events.c +++ b/events.c @@ -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); -- cgit v1.2.3