mirror of
https://github.com/emacs-exwm/exwm.git
synced 2024-11-30 16:07:59 +01:00
Use let instead of setq when setting exwm-input--line-mode-passthrough
That way, exwm won't clobber user modifications to this variable.
This commit is contained in:
parent
0ae1e7327e
commit
46e1d7a754
1 changed files with 9 additions and 10 deletions
|
@ -629,7 +629,7 @@ This value should always be overwritten.")
|
||||||
(let (key keys)
|
(let (key keys)
|
||||||
(dotimes (i times)
|
(dotimes (i times)
|
||||||
;; Skip events not from keyboard
|
;; Skip events not from keyboard
|
||||||
(setq exwm-input--line-mode-passthrough t)
|
(let ((exwm-input--line-mode-passthrough t))
|
||||||
(catch 'break
|
(catch 'break
|
||||||
(while t
|
(while t
|
||||||
(setq key (read-key (format "Send key: %s (%d/%d)"
|
(setq key (read-key (format "Send key: %s (%d/%d)"
|
||||||
|
@ -637,8 +637,7 @@ This value should always be overwritten.")
|
||||||
(1+ i) times)))
|
(1+ i) times)))
|
||||||
(when (and (listp key) (eq (car key) t))
|
(when (and (listp key) (eq (car key) t))
|
||||||
(setq key (cdr key)))
|
(setq key (cdr key)))
|
||||||
(unless (listp key) (throw 'break nil))))
|
(unless (listp key) (throw 'break nil)))))
|
||||||
(setq exwm-input--line-mode-passthrough nil)
|
|
||||||
(setq keys (vconcat keys (vector key)))
|
(setq keys (vconcat keys (vector key)))
|
||||||
(exwm-input--fake-key key))))
|
(exwm-input--fake-key key))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue