From 3a6cd243e4278608a39d465dd8c36350d008be59 Mon Sep 17 00:00:00 2001 From: Nikos Ntarmos Date: Thu, 15 Nov 2007 17:20:22 +0100 Subject: [PATCH] fix reloadconfig segmentation fault needed because keys arrays is freed so we can't access it again --- event.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/event.c b/event.c index 4bb91cd9..fc83cb34 100644 --- a/event.c +++ b/event.c @@ -289,7 +289,10 @@ handle_event_keypress(XEvent * e, awesome_config *awesomeconf) for(k = awesomeconf[screen].keys; k; k = k->next) if(keysym == k->keysym && k->func && CLEANMASK(k->mod, awesomeconf[screen]) == CLEANMASK(ev->state, awesomeconf[screen])) + { k->func(&awesomeconf[screen], k->arg); + break; + } } void