about summary refs log tree commit diff
path: root/exwm-workspace.el
diff options
context:
space:
mode:
authorAdrián Medraño Calvo <adrian@medranocalvo.com>2018-08-30T12·00+0000
committerAdrián Medraño Calvo <adrian@medranocalvo.com>2018-08-30T12·00+0000
commit5f6b866cfed7214caabd5f5dd0f952cce93a307c (patch)
tree9150ba640054fda72bd748b6b31f7fae076c6778 /exwm-workspace.el
parent2b1ed2ce704de5b61391f34251c89e5187c4a593 (diff)
Refresh layout after activating/deactivating workspaces
* exwm-workspace.el (exwm-workspace--set-active): Refresh layout
after activating or deactivating workspaces.

* exwm-layout.el (exwm-layout--refresh-workspace): Hide X windows on
inactive workspaces.
Diffstat (limited to 'exwm-workspace.el')
-rw-r--r--exwm-workspace.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/exwm-workspace.el b/exwm-workspace.el
index bcfffff1d354..4d82ae596302 100644
--- a/exwm-workspace.el
+++ b/exwm-workspace.el
@@ -379,8 +379,9 @@ NIL if FRAME is not a workspace"
   (set-frame-parameter frame 'exwm-active active)
   (if active
       (exwm-workspace--set-fullscreen frame)
-    (exwm--set-geometry (frame-parameter frame 'exwm-container) nil nil 1 1)
-    (xcb:flush exwm--connection)))
+    (exwm--set-geometry (frame-parameter frame 'exwm-container) nil nil 1 1))
+  (exwm-layout--refresh frame)
+  (xcb:flush exwm--connection))
 
 (defun exwm-workspace--active-p (frame)
   "Return non-nil if FRAME is active"