fix reloadconfig segmentation fault

needed because keys arrays is freed so we can't access it again
This commit is contained in:
Nikos Ntarmos 2007-11-15 17:20:22 +01:00 committed by Julien Danjou
parent 3f203e3327
commit 3a6cd243e4
1 changed files with 3 additions and 0 deletions

View File

@ -289,7 +289,10 @@ handle_event_keypress(XEvent * e, awesome_config *awesomeconf)
for(k = awesomeconf[screen].keys; k; k = k->next) for(k = awesomeconf[screen].keys; k; k = k->next)
if(keysym == k->keysym && k->func if(keysym == k->keysym && k->func
&& CLEANMASK(k->mod, awesomeconf[screen]) == CLEANMASK(ev->state, awesomeconf[screen])) && CLEANMASK(k->mod, awesomeconf[screen]) == CLEANMASK(ev->state, awesomeconf[screen]))
{
k->func(&awesomeconf[screen], k->arg); k->func(&awesomeconf[screen], k->arg);
break;
}
} }
void void