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.
This commit is contained in:
Adrián Medraño Calvo 2016-03-19 00:00:00 +00:00
parent 3763195fe3
commit e4704479a8

View file

@ -347,11 +347,7 @@ The optional FORCE option is for internal use only."
;; Move the X window container. ;; Move the X window container.
(if (= index exwm-workspace-current-index) (if (= index exwm-workspace-current-index)
(set-window-buffer (get-buffer-window (current-buffer) t) (set-window-buffer (get-buffer-window (current-buffer) t)
(or (get-buffer "*scratch*") (other-buffer))
(progn
(set-buffer-major-mode
(get-buffer-create "*scratch*"))
(get-buffer "*scratch*"))))
(bury-buffer) (bury-buffer)
;; Clear the 'exwm-selected-window' frame parameter. ;; Clear the 'exwm-selected-window' frame parameter.
(set-frame-parameter frame 'exwm-selected-window nil)) (set-frame-parameter frame 'exwm-selected-window nil))