about summary refs log tree commit diff
path: root/exwm-manage.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-manage.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-manage.el')
-rw-r--r--exwm-manage.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/exwm-manage.el b/exwm-manage.el
index 84dcf0a3a3..36a989665e 100644
--- a/exwm-manage.el
+++ b/exwm-manage.el
@@ -682,9 +682,7 @@ border-width: %d; sibling: #x%x; stack-mode: %d"
             (if (exwm-layout--iconic-state-p)
                 ;; State change: iconic => normal.
                 (when (eq exwm--frame exwm-workspace--current)
-                  (set-window-buffer (frame-selected-window exwm--frame)
-                                     (current-buffer))
-                  (select-window (frame-selected-window exwm--frame)))
+                  (pop-to-buffer-same-window (current-buffer)))
               (exwm--log "#x%x is already managed" window)))
         (if (/= exwm--root parent)
             (progn (xcb:+request exwm--connection