[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/exwm 463d0da 1/2: Close the (possible) active minibuffe
From: |
Chris Feng |
Subject: |
[elpa] externals/exwm 463d0da 1/2: Close the (possible) active minibuffer when switching workspace |
Date: |
Sun, 25 Oct 2015 06:58:50 +0000 |
branch: externals/exwm
commit 463d0da41139ccf48c9c0c9522c93041769dfcdb
Author: Chris Feng <address@hidden>
Commit: Chris Feng <address@hidden>
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.
---
exwm-workspace.el | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/exwm-workspace.el b/exwm-workspace.el
index 566ea53..0813c89 100644
--- a/exwm-workspace.el
+++ b/exwm-workspace.el
@@ -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