about summary refs log tree commit diff
path: root/exwm-floating.el
diff options
context:
space:
mode:
authorChris Feng <chris.w.feng@gmail.com>2015-09-17T11·48+0800
committerChris Feng <chris.w.feng@gmail.com>2015-09-17T11·48+0800
commit4255f078a690751a20377372be1352698e041ad0 (patch)
tree4d8c8433ff92ee7007f67a1b24729b147d63a264 /exwm-floating.el
parentb458d5ac30afed348df4788721bb48be94e97c60 (diff)
On-demand update exwm-workspace--switch-history
* exwm-workspace.el (exwm-workspace--switch-history-outdated)
  (exwm-workspace--update-switch-history, exwm-workspace-switch)
  (exwm-workspace-move-window):
* exwm.el (exwm--update-hints, exwm--on-ClientMessage):
* exwm-floating.el (exwm-floating--set-floating):
* exwm-manage.el (exwm-manage--manage-window, exwm-manage--unmanage-window):
  Update exwm-workspace--switch-history only when it's used.
Diffstat (limited to 'exwm-floating.el')
-rw-r--r--exwm-floating.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/exwm-floating.el b/exwm-floating.el
index 12390b0ea2e1..346f02e8caa7 100644
--- a/exwm-floating.el
+++ b/exwm-floating.el
@@ -94,7 +94,7 @@
     (let ((idx (cl-position original-frame exwm-workspace--list)))
       (when (/= idx exwm-workspace-current-index)
         (set-frame-parameter original-frame 'exwm--urgency t)
-        (exwm-workspace--update-switch-history)))
+        (setq exwm-workspace--switch-history-outdated t)))
     ;; Fix illegal parameters
     ;; FIXME: check normal hints restrictions
     (let* ((display-width (frame-pixel-width original-frame))