diff options
author | Chris Feng <chris.w.feng@gmail.com> | 2015-09-17T11·48+0800 |
---|---|---|
committer | Chris Feng <chris.w.feng@gmail.com> | 2015-09-17T11·48+0800 |
commit | 4255f078a690751a20377372be1352698e041ad0 (patch) | |
tree | 4d8c8433ff92ee7007f67a1b24729b147d63a264 /exwm-manage.el | |
parent | b458d5ac30afed348df4788721bb48be94e97c60 (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-manage.el')
-rw-r--r-- | exwm-manage.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exwm-manage.el b/exwm-manage.el index 2636c016b891..3e3c848a56ee 100644 --- a/exwm-manage.el +++ b/exwm-manage.el @@ -145,7 +145,7 @@ corresponding buffer.") (exwm-floating--set-floating id) (exwm-floating--unset-floating id)) (exwm-input-grab-keyboard id) - (exwm-workspace--update-switch-history) + (setq exwm-workspace--switch-history-outdated t) (with-current-buffer (exwm--id->buffer id) (run-hooks 'exwm-manage-finish-hook))))) @@ -161,7 +161,7 @@ corresponding buffer.") (xcb:flush exwm--connection) (when (buffer-live-p buffer) (with-current-buffer buffer - (exwm-workspace--update-switch-history) + (setq exwm-workspace--switch-history-outdated t) ;; (when withdraw-only ;; Reparent back to root |