From 57328b439fdc367519e3ce9f7c6ef2d3a4934cbc Mon Sep 17 00:00:00 2001 From: Chris Feng Date: Sun, 4 Mar 2018 21:59:19 +0800 Subject: [PATCH] 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'. --- exwm-workspace.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exwm-workspace.el b/exwm-workspace.el index deb6a65..a999719 100644 --- a/exwm-workspace.el +++ b/exwm-workspace.el @@ -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)