mirror of
https://github.com/ch11ng/exwm.git
synced 2024-11-23 19:47:58 +01:00
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:
parent
46fe764634
commit
57328b439f
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue