fix: unable to bind anything to XK_Escape

This commit is contained in:
NRK 2021-09-24 11:28:52 +06:00 committed by N-R-K
parent af98249b68
commit 3bec517655
1 changed files with 1 additions and 1 deletions

2
main.c
View File

@ -587,7 +587,7 @@ void on_keypress(XKeyEvent *kev)
} }
if (IsModifierKey(ksym)) if (IsModifierKey(ksym))
return; return;
if (ksym == XK_Escape && MODMASK(kev->state) == 0) { if (extprefix && ksym == XK_Escape && MODMASK(kev->state) == 0) {
extprefix = False; extprefix = False;
} else if (extprefix) { } else if (extprefix) {
run_key_handler(XKeysymToString(ksym), kev->state & ~sh); run_key_handler(XKeysymToString(ksym), kev->state & ~sh);