From 3bec5176555e9ca56898c909dd9e90dae0d126b6 Mon Sep 17 00:00:00 2001 From: NRK Date: Fri, 24 Sep 2021 11:28:52 +0600 Subject: fix: unable to bind anything to XK_Escape --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 7c58594..707e833 100644 --- a/main.c +++ b/main.c @@ -587,7 +587,7 @@ void on_keypress(XKeyEvent *kev) } if (IsModifierKey(ksym)) return; - if (ksym == XK_Escape && MODMASK(kev->state) == 0) { + if (extprefix && ksym == XK_Escape && MODMASK(kev->state) == 0) { extprefix = False; } else if (extprefix) { run_key_handler(XKeysymToString(ksym), kev->state & ~sh); -- cgit v1.2.3