mirror of
https://github.com/emacs-exwm/exwm.git
synced 2024-11-27 06:48:00 +01:00
Fix bug when moving a window to the current workspace
* exwm-workspace.el (exwm-workspace-move-window): Run reparenting code when moving a window to the current workspace.
This commit is contained in:
parent
7bfd429d52
commit
15ad591d97
1 changed files with 2 additions and 2 deletions
|
@ -168,9 +168,9 @@ The optional FORCE option is for internal use only."
|
|||
(unless id (setq id (exwm--buffer->id (window-buffer))))
|
||||
(unless (and (<= 0 index) (< index exwm-workspace-number))
|
||||
(user-error "[EXWM] Workspace index out of range: %d" index))
|
||||
(when (/= exwm-workspace-current-index index)
|
||||
(with-current-buffer (exwm--id->buffer id)
|
||||
(let ((frame (elt exwm-workspace--list index)))
|
||||
(with-current-buffer (exwm--id->buffer id)
|
||||
(when (not (equal exwm--frame frame))
|
||||
(setq exwm--frame frame)
|
||||
(exwm-workspace-rename-buffer
|
||||
(concat " " (replace-regexp-in-string "^\\s-*" "" (buffer-name))))
|
||||
|
|
Loading…
Reference in a new issue