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:
Chris Feng 2015-10-19 14:59:58 +08:00
parent e70c6fad56
commit 463d0da411

View file

@ -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