mirror of
https://github.com/emacs-exwm/exwm.git
synced 2024-11-23 21:17:59 +01:00
Fixed fail update when current buffer differs from window
Local variable `exwm--input-mode' from different buffer when current buffer don't contains #id window. `with-current-buffer' changes buffer after `cl-case' with local `exwm--input-mode'
This commit is contained in:
parent
ed0f63327d
commit
dc5cc1dead
1 changed files with 13 additions and 13 deletions
|
@ -749,6 +749,7 @@ button event."
|
||||||
"Update the propertized `mode-line-process' for window ID."
|
"Update the propertized `mode-line-process' for window ID."
|
||||||
(exwm--log "#x%x" id)
|
(exwm--log "#x%x" id)
|
||||||
(let (help-echo cmd mode)
|
(let (help-echo cmd mode)
|
||||||
|
(with-current-buffer (exwm--id->buffer id)
|
||||||
(cl-case exwm--input-mode
|
(cl-case exwm--input-mode
|
||||||
(line-mode
|
(line-mode
|
||||||
(setq mode "line"
|
(setq mode "line"
|
||||||
|
@ -762,7 +763,6 @@ button event."
|
||||||
cmd (lambda ()
|
cmd (lambda ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(exwm-input-grab-keyboard id)))))
|
(exwm-input-grab-keyboard id)))))
|
||||||
(with-current-buffer (exwm--id->buffer id)
|
|
||||||
(setq mode-line-process
|
(setq mode-line-process
|
||||||
`(": "
|
`(": "
|
||||||
(:propertize ,mode
|
(:propertize ,mode
|
||||||
|
|
Loading…
Reference in a new issue