aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-01-17 19:57:58 +0100
committerBert <ber.t@gmx.com>2011-01-17 19:57:58 +0100
commit75b143a5b0ee62db9b746ecc512855ff9d2f09ff (patch)
tree63aaa16cc4c28d6cf232fcca9630dd4c450c34d9
parentb5526c9db0bad914688c906d3f35422cb9128e29 (diff)
Return value != 0 on Escape
-rw-r--r--events.c3
1 files changed, 3 insertions, 0 deletions
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);