about summary refs log tree commit diff
path: root/exwm-manage.el
diff options
context:
space:
mode:
authorChris Feng <chris.w.feng@gmail.com>2016-08-12T11·25+0800
committerChris Feng <chris.w.feng@gmail.com>2016-08-12T11·25+0800
commite4ecd792103c33e03ef9ff590d9c8e6b86431efd (patch)
treeb63e3e6dab71457bcefa3b826bbd237179288ad6 /exwm-manage.el
parent8a438c2c172b57fda19c36802bd183d44241af95 (diff)
* exwm-manage.el (exwm-manage--unmanage-window): Do not clear struts
when unmapping.
Diffstat (limited to 'exwm-manage.el')
-rw-r--r--exwm-manage.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/exwm-manage.el b/exwm-manage.el
index 2ec21b3ed382..60ff2e24b8a4 100644
--- a/exwm-manage.el
+++ b/exwm-manage.el
@@ -307,7 +307,8 @@ manager is shutting down."
                id buffer withdraw-only)
     (setq exwm--id-buffer-alist (assq-delete-all id exwm--id-buffer-alist))
     ;; Update workspaces when a dock is destroyed.
-    (when (assq id exwm-workspace--id-struts-alist)
+    (when (and (null withdraw-only)
+               (assq id exwm-workspace--id-struts-alist))
       (setq exwm-workspace--id-struts-alist
             (assq-delete-all id exwm-workspace--id-struts-alist))
       (exwm-workspace--update-struts)