about summary refs log tree commit diff
path: root/exwm-workspace.el
diff options
context:
space:
mode:
authorChris Feng <chris.w.feng@gmail.com>2016-08-31T11·27+0800
committerChris Feng <chris.w.feng@gmail.com>2016-08-31T11·27+0800
commit4287d31df1762af8cd6641f4f58fea6ed607d294 (patch)
tree0774dff4bd725f28b5ef26c03f6cd1764d564204 /exwm-workspace.el
parentcfcaed691bff4270a8bccf9f873a4ba8f0524b4b (diff)
parentb4517fbfa058e38b9c229d3e76674221d89a2e2b (diff)
Merge branch 'vedvyas/workspace-move-window-tweak' into externals/exwm
Diffstat (limited to 'exwm-workspace.el')
-rw-r--r--exwm-workspace.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/exwm-workspace.el b/exwm-workspace.el
index 958511270b8d..24a59f9fab07 100644
--- a/exwm-workspace.el
+++ b/exwm-workspace.el
@@ -746,10 +746,9 @@ INDEX must not exceed the current number of workspaces."
                                        (frame-root-window
                                         exwm--floating-frame)))))
           ;; Move the X window container.
-          (if (eq frame exwm-workspace--current)
-              (set-window-buffer (get-buffer-window (current-buffer) t)
-                                 (other-buffer))
-            (bury-buffer)
+          (set-window-buffer (get-buffer-window (current-buffer) t)
+                             (other-buffer nil t))
+          (unless (eq frame exwm-workspace--current)
             ;; Clear the 'exwm-selected-window' frame parameter.
             (set-frame-parameter frame 'exwm-selected-window nil))
           (exwm-layout--hide id)