mirror of
https://github.com/ch11ng/exwm.git
synced 2024-11-23 19:47:58 +01:00
Close the (possible) active minibuffer when switching workspace
* exwm-workspace.el (exwm-workspace-switch): An active minibuffer on another workspace might cause problems for input. Closing it should be sufficient.
This commit is contained in:
parent
e70c6fad56
commit
463d0da411
1 changed files with 2 additions and 0 deletions
|
@ -138,6 +138,8 @@ The optional FORCE option is for internal use only."
|
|||
(setq x (/ w 2)
|
||||
y (/ h 2)))
|
||||
(set-mouse-pixel-position frame x y)))
|
||||
;; Close the (possible) active minibuffer
|
||||
(when (active-minibuffer-window) (abort-recursive-edit))
|
||||
(setq default-minibuffer-frame frame)
|
||||
;; Hide windows in other workspaces by preprending a space
|
||||
(unless exwm-workspace-show-all-buffers
|
||||
|
|
Loading…
Reference in a new issue