aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2021-09-24 11:28:52 +0600
committerN-R-K <79544946+N-R-K@users.noreply.github.com>2021-09-24 17:29:30 +0600
commit3bec5176555e9ca56898c909dd9e90dae0d126b6 (patch)
tree801e5f943a65324aeebab1d72b88413996e051f3
parentaf98249b6886defcd9d456bd5a23082f9ec7f75f (diff)
fix: unable to bind anything to XK_Escape
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
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);