From 9d035d713ee2692ea095dc6e0668ecabeb550845 Mon Sep 17 00:00:00 2001 From: Sergey Trofimov Date: Sat, 25 Nov 2023 15:20:36 +0100 Subject: [PATCH] Detect unavailable keys properly. Fixes #592. --- exwm-input.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exwm-input.el b/exwm-input.el index 05b0210..ae6a4ce 100644 --- a/exwm-input.el +++ b/exwm-input.el @@ -514,7 +514,7 @@ ARGS are additional arguments to CALLBACK." keysyms keycode alt-modifier) (dolist (k exwm-input--global-prefix-keys) (setq keysyms (xcb:keysyms:event->keysyms exwm--connection k)) - (if (not keysyms) + (if (= 0 (caar keysyms)) (warn "Key unavailable: %s" (key-description (vector k))) (setq keycode (xcb:keysyms:keysym->keycode exwm--connection (caar keysyms)))