; Expose `exwm-input-line-mode-passthrough' as a public interface.
This commit is contained in:
parent
46e1d7a754
commit
d0e9895748
2 changed files with 5 additions and 5 deletions
|
@ -80,7 +80,7 @@
|
|||
(logior xcb:EventMask:StructureNotify xcb:EventMask:PropertyChange))
|
||||
"Event mask set on all managed windows.")
|
||||
|
||||
(defvar exwm-input--line-mode-passthrough)
|
||||
(defvar exwm-input-line-mode-passthrough)
|
||||
(defvar exwm-input--global-prefix-keys)
|
||||
(defvar exwm-input-prefix-keys)
|
||||
(defvar exwm-input--simulation-prefix-keys)
|
||||
|
@ -154,7 +154,7 @@
|
|||
(lambda ()
|
||||
(interactive)
|
||||
(cond
|
||||
((or exwm-input--line-mode-passthrough
|
||||
((or exwm-input-line-mode-passthrough
|
||||
;; Do not test `exwm-input--during-command'.
|
||||
(active-minibuffer-window)
|
||||
(memq last-input-event exwm-input--global-prefix-keys)
|
||||
|
|
|
@ -420,7 +420,7 @@ This value should always be overwritten.")
|
|||
(defvar exwm-input--during-command nil
|
||||
"Indicate whether between `pre-command-hook' and `post-command-hook'.")
|
||||
|
||||
(defvar exwm-input--line-mode-passthrough nil
|
||||
(defvar exwm-input-line-mode-passthrough nil
|
||||
"Non-nil makes 'line-mode' forwards all events to Emacs.")
|
||||
|
||||
(defvar exwm-input--line-mode-cache nil "Cache for incomplete key sequence.")
|
||||
|
@ -449,7 +449,7 @@ This value should always be overwritten.")
|
|||
(setq event (xcb:keysyms:keysym->event
|
||||
exwm--connection (car keysym)
|
||||
(logand state (lognot (cdr keysym)))))
|
||||
(or exwm-input--line-mode-passthrough
|
||||
(or exwm-input-line-mode-passthrough
|
||||
exwm-input--during-command
|
||||
;; Forward the event when there is an incomplete key
|
||||
;; sequence or when the minibuffer is active.
|
||||
|
@ -629,7 +629,7 @@ This value should always be overwritten.")
|
|||
(let (key keys)
|
||||
(dotimes (i times)
|
||||
;; Skip events not from keyboard
|
||||
(let ((exwm-input--line-mode-passthrough t))
|
||||
(let ((exwm-input-line-mode-passthrough t))
|
||||
(catch 'break
|
||||
(while t
|
||||
(setq key (read-key (format "Send key: %s (%d/%d)"
|
||||
|
|
Loading…
Reference in a new issue