diff options
author | Philip <pipcet@gmail.com> | 2015-08-16T18·05+0000 |
---|---|---|
committer | Philip <pipcet@gmail.com> | 2015-08-16T18·09+0000 |
commit | 15ad591d978836b753839014f3c7ce67111763c1 (patch) | |
tree | c30d4ce833a9c71e972b0b078cf44267a942f03d /exwm-workspace.el | |
parent | 7bfd429d5252e8df43d1b19b836a6c4970290fa0 (diff) |
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.
Diffstat (limited to 'exwm-workspace.el')
-rw-r--r-- | exwm-workspace.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exwm-workspace.el b/exwm-workspace.el index 09112d2d6556..00f73261ec5c 100644 --- a/exwm-workspace.el +++ b/exwm-workspace.el @@ -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)))) |