about summary refs log tree commit diff
path: root/exwm-workspace.el
diff options
context:
space:
mode:
authorAdrián Medraño Calvo <adrian@medranocalvo.com>2016-03-19T00·00+0000
committerAdrián Medraño Calvo <adrian@medranocalvo.com>2016-03-19T00·00+0000
commite4704479a85e3c1d02a2eb8116bc42dad63608b9 (patch)
treee1a918c9ce1d7c6be00e79a71d4abb26fc271c8f /exwm-workspace.el
parent3763195fe3205090e1f405970421662523b7df7e (diff)
Use `other-buffer' instead of "*scratch*"
* exwm-workspace.el (exwm-workspace-move-window): Display
`other-buffer' instead of "*scratch*" in the window whose buffer
has been made floating.
Diffstat (limited to 'exwm-workspace.el')
-rw-r--r--exwm-workspace.el6
1 files changed, 1 insertions, 5 deletions
diff --git a/exwm-workspace.el b/exwm-workspace.el
index c9a57f5a3d6d..d8e84f3f87b3 100644
--- a/exwm-workspace.el
+++ b/exwm-workspace.el
@@ -347,11 +347,7 @@ The optional FORCE option is for internal use only."
           ;; Move the X window container.
           (if (= index exwm-workspace-current-index)
               (set-window-buffer (get-buffer-window (current-buffer) t)
-                                 (or (get-buffer "*scratch*")
-                                     (progn
-                                       (set-buffer-major-mode
-                                        (get-buffer-create "*scratch*"))
-                                       (get-buffer "*scratch*"))))
+                                 (other-buffer))
             (bury-buffer)
             ;; Clear the 'exwm-selected-window' frame parameter.
             (set-frame-parameter frame 'exwm-selected-window nil))