about summary refs log tree commit diff
path: root/exwm-floating.el
diff options
context:
space:
mode:
authorChris Feng <chris.w.feng@gmail.com>2017-08-30T16·58+0800
committerChris Feng <chris.w.feng@gmail.com>2017-08-30T16·58+0800
commit46dfaeb0310e4a331ffe5d19c0774c64e786ff27 (patch)
tree110846a11770e91544909540b4a29b5aafa86312 /exwm-floating.el
parent4eda6dde41e04765dcc519d123de20b020db6e4a (diff)
Avoid reusing dedicated window
* exwm-floating.el (exwm-floating--unset-floating):
* exwm-manage.el (exwm-manage--on-MapRequest):
Do not select a dedicated window for displaying a buffer.
Diffstat (limited to 'exwm-floating.el')
-rw-r--r--exwm-floating.el6
1 files changed, 1 insertions, 5 deletions
diff --git a/exwm-floating.el b/exwm-floating.el
index ea68cb500b..af11b877b9 100644
--- a/exwm-floating.el
+++ b/exwm-floating.el
@@ -340,11 +340,7 @@ context of the corresponding buffer.")
             exwm--frame exwm-workspace--current))
     ;; Only show X windows in normal state.
     (unless (exwm-layout--iconic-state-p)
-      ;; Show it in the selected Emacs window but skip the mini-window.
-      (let ((window (or (minibuffer-selected-window)
-                        (frame-selected-window exwm-workspace--current))))
-        (set-window-buffer window buffer)
-        (select-window window))))
+      (pop-to-buffer-same-window buffer)))
   (with-current-buffer (exwm--id->buffer id)
     (run-hooks 'exwm-floating-exit-hook)))