From 226717b7f8fc5ce8e4d380b1d2894e5742a79b7c Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Sat, 1 Dec 2007 15:51:20 +0000 Subject: [PATCH] * Allow exiting cacafire using the window manager --- src/aafire.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/aafire.c b/src/aafire.c index ffa5aab..bbfc800 100644 --- a/src/aafire.c +++ b/src/aafire.c @@ -270,8 +270,10 @@ game (void) { #ifdef LIBCACA caca_event_t ev; - if(caca_get_event(dp, CACA_EVENT_KEY_PRESS, &ev, 0)) + if(caca_get_event(dp, CACA_EVENT_KEY_PRESS|CACA_EVENT_QUIT, &ev, 0)) { + if (caca_get_event_type(&ev) & CACA_EVENT_QUIT) + return; switch(caca_get_event_key_ch(&ev)) { case CACA_KEY_CTRL_C: