Exclude irrelevant X windows when refreshing

* exwm-layout.el (exwm-layout--refresh): Only check X windows on the
workspace being examined.
This commit is contained in:
Chris Feng 2018-08-12 00:00:00 +00:00
parent aebcb0344f
commit e6527227b3

View file

@ -295,7 +295,8 @@ selected by `other-buffer'."
(eq frame exwm--frame))) (eq frame exwm--frame)))
(setq windows (get-buffer-window-list (current-buffer) 0)) (setq windows (get-buffer-window-list (current-buffer) 0))
(if (not windows) (if (not windows)
(exwm-layout--hide exwm--id) (when (eq frame exwm--frame)
(exwm-layout--hide exwm--id))
(let ((window (car windows))) (let ((window (car windows)))
(if (eq frame exwm--frame) (if (eq frame exwm--frame)
(when (exwm-workspace--active-p frame) (when (exwm-workspace--active-p frame)