Krolyxon
Commit 75b143a

Branches

Refs →

nsxiv75b143a

Return value != 0 on Escape

Author
Bert
Date
2011-01-17 19:57 +0100
Parent
b5526c9
Commit
75b143a5b0ee62db9b746ecc512855ff9d2f09ff

+3 −0

1 file changed

  1. M events.c +3 −0
M events.c View
@@ -47,6 +47,9 @@ void on_keypress(app_t *app, XEvent *ev) {
4747 keysym = XKeycodeToKeysym(dpy, (KeyCode) kev->keycode, 0);
4848
4949 switch (keysym) {
50+ case XK_Escape:
51+ app_quit(app);
52+ exit(1);
5053 case XK_q:
5154 app_quit(app);
5255 exit(0);