mirror of
https://github.com/emacs-exwm/exwm.git
synced 2024-11-23 21:17:59 +01:00
Additional fix for winner-mode
* exwm-input.el (exwm-input--on-KeyPress-line-mode): Check incomplete key presses (which generate no valid events) before running `pre-command-hook' and `post-command-hook'.
This commit is contained in:
parent
ed0f63327d
commit
5f9ba9772f
1 changed files with 4 additions and 3 deletions
|
@ -688,9 +688,10 @@ Current buffer must be an `exwm-mode' buffer."
|
||||||
(set-transient-map `(keymap (t . ,#'exwm-input--noop)))
|
(set-transient-map `(keymap (t . ,#'exwm-input--noop)))
|
||||||
(exwm-input--unread-event event))
|
(exwm-input--unread-event event))
|
||||||
;; Fool some packages into thinking there is a change in the buffer.
|
;; Fool some packages into thinking there is a change in the buffer.
|
||||||
|
(when event
|
||||||
(setq last-command #'exwm-input--noop)
|
(setq last-command #'exwm-input--noop)
|
||||||
(run-hooks 'pre-command-hook)
|
(run-hooks 'pre-command-hook)
|
||||||
(run-hooks 'post-command-hook)))
|
(run-hooks 'post-command-hook))))
|
||||||
(xcb:+request exwm--connection
|
(xcb:+request exwm--connection
|
||||||
(make-instance 'xcb:AllowEvents
|
(make-instance 'xcb:AllowEvents
|
||||||
:mode mode
|
:mode mode
|
||||||
|
|
Loading…
Reference in a new issue