diff options
author | Chris Feng <chris.w.feng@gmail.com> | 2018-03-04T13·59+0800 |
---|---|---|
committer | Chris Feng <chris.w.feng@gmail.com> | 2018-03-04T13·59+0800 |
commit | 57328b439fdc367519e3ce9f7c6ef2d3a4934cbc (patch) | |
tree | 03da8eb1154cca44a1d156e1b897fa20e2017eed /exwm-workspace.el | |
parent | 46fe764634ff4fa0eff7ea87c3b96209a05c89be (diff) |
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'.
Diffstat (limited to 'exwm-workspace.el')
-rw-r--r-- | exwm-workspace.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/exwm-workspace.el b/exwm-workspace.el index deb6a653575a..a99971904c37 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) |