aboutsummaryrefslogtreecommitdiffstats
path: root/events.c
diff options
context:
space:
mode:
Diffstat (limited to 'events.c')
-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);