mirror of
https://github.com/emacs-exwm/exwm.git
synced 2024-11-27 14:57:59 +01:00
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:
parent
3763195fe3
commit
e4704479a8
1 changed files with 1 additions and 5 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue