Avoid switching buffer when moving an X window already in place

* exwm-workspace.el (exwm-workspace-move-window): This is required
when calling `exwm-workspace-move-window' from `exwm-layout--refresh'.
This commit is contained in:
Chris Feng 2018-03-04 21:59:19 +08:00
parent 46fe764634
commit 57328b439f

View file

@ -767,7 +767,9 @@ INDEX must not exceed the current number of workspaces."
exwm--frame frame)
(if (not exwm--floating-frame)
;; Tiling.
(progn
(if (get-buffer-window nil frame)
(when (eq frame exwm-workspace--current)
(run-window-configuration-change-hook frame))
(set-window-buffer (get-buffer-window nil t)
(other-buffer nil t))
(unless (eq frame exwm-workspace--current)