diff options
author | Bert <ber.t@gmx.com> | 2011-01-17 19:57:58 +0100 |
---|---|---|
committer | Bert <ber.t@gmx.com> | 2011-01-17 19:57:58 +0100 |
commit | 75b143a5b0ee62db9b746ecc512855ff9d2f09ff (patch) | |
tree | 63aaa16cc4c28d6cf232fcca9630dd4c450c34d9 | |
parent | b5526c9db0bad914688c906d3f35422cb9128e29 (diff) |
Return value != 0 on Escape
-rw-r--r-- | events.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |