Handle (t . EVENT) format events in exwm-xim

* exwm-xim.el (exwm-xim--handle-forward-event-request): Ditto.
This commit is contained in:
Chris Feng 2019-06-09 00:00:00 +00:00
parent 75833e0c53
commit 8a54504152

View file

@ -546,7 +546,11 @@ The actual XIM request is in client message data or a property."
(logand state (lognot (cdr keysym))))))) (logand state (lognot (cdr keysym)))))))
(while (or (slot-value req 'event) unread-command-events) (while (or (slot-value req 'event) unread-command-events)
(unless (slot-value req 'event) (unless (slot-value req 'event)
(setq event (pop unread-command-events))) (setq event (pop unread-command-events))
;; Handle events in (t . EVENT) format.
(when (and (consp event)
(eq (car event) t))
(setq event (cdr event))))
(if (or (not im-func) (if (or (not im-func)
;; `list' is the default method. ;; `list' is the default method.
(eq im-func #'list) (eq im-func #'list)