Explorar el Código

Return value != 0 on Escape

master
Bert hace 14 años
padre
commit
75b143a5b0
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. +3
    -0
      events.c

+ 3
- 0
events.c Ver fichero

@@ -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);


Cargando…
Cancelar
Guardar