fix: wrap exwm-workspace-switch in exwm--defer

This commit is contained in:
Pavel Korytov 2023-01-05 23:28:36 +03:00
parent 8afdbf894a
commit c320f0967d

View file

@ -199,8 +199,10 @@ detail."
persp-name))
(cons i persp-name))))))
(choice (cdr (assoc (completing-read "Select a perspective: " choices) choices))))
(exwm-workspace-switch (car choice))
(persp-switch (cdr choice))))
(exwm--defer
0 (lambda ()
(exwm-workspace-switch (car choice))
(persp-switch (cdr choice))))))
;;;###autoload
(defun perspective-exwm-copy-to-workspace (&optional move)