about summary refs log tree commit diff
path: root/exwm-layout.el
diff options
context:
space:
mode:
authorChris Feng <chris.w.feng@gmail.com>2018-08-12T00·00+0000
committerChris Feng <chris.w.feng@gmail.com>2018-08-12T00·00+0000
commite6527227b387d08146963613ada37022ddf33d80 (patch)
tree254196b99bcfd6c696ed0f101f6ff701a5ea732c /exwm-layout.el
parentaebcb0344f18b1aa284a432811175fde2d2feae5 (diff)
Exclude irrelevant X windows when refreshing
* exwm-layout.el (exwm-layout--refresh): Only check X windows on the
workspace being examined.
Diffstat (limited to 'exwm-layout.el')
-rw-r--r--exwm-layout.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/exwm-layout.el b/exwm-layout.el
index 8c86bbd37b92..9427607712d7 100644
--- a/exwm-layout.el
+++ b/exwm-layout.el
@@ -295,7 +295,8 @@ selected by `other-buffer'."
                          (eq frame exwm--frame)))
             (setq windows (get-buffer-window-list (current-buffer) 0))
             (if (not windows)
-                (exwm-layout--hide exwm--id)
+                (when (eq frame exwm--frame)
+                  (exwm-layout--hide exwm--id))
               (let ((window (car windows)))
                 (if (eq frame exwm--frame)
                     (when (exwm-workspace--active-p frame)