about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--exwm-layout.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/exwm-layout.el b/exwm-layout.el
index 8c86bbd37b..9427607712 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)