Krolyxon
Commit 3bec517

Branches

Refs →

nsxiv3bec517

fix: unable to bind anything to XK_Escape

Author
NRK
Date
2021-09-24 11:28 +0600
Committer
N-R-K · 2021-09-24 17:29 +0600
Parent
af98249
Commit
3bec5176555e9ca56898c909dd9e90dae0d126b6

+1 −1

1 file changed

  1. M main.c +1 −1
M main.c View
@@ -587,7 +587,7 @@ void on_keypress(XKeyEvent *kev)
587587 }
588588 if (IsModifierKey(ksym))
589589 return;
590− if (ksym == XK_Escape && MODMASK(kev->state) == 0) {
590+ if (extprefix && ksym == XK_Escape && MODMASK(kev->state) == 0) {
591591 extprefix = False;
592592 } else if (extprefix) {
593593 run_key_handler(XKeysymToString(ksym), kev->state & ~sh);