Return value != 0 on Escape
This commit is contained in:
parent
b5526c9db0
commit
75b143a5b0
1 changed files with 3 additions and 0 deletions
3
events.c
3
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue