Skip to content

Commit

Permalink
Detect unavailable keys properly. Fixes #592.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarg committed Nov 25, 2023
1 parent 56db521 commit 9d035d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exwm-input.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit 9d035d7

Please sign in to comment.