From 34ed757e117bce898b01203ddc1bed8c81fa5c1f Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Mon, 20 Feb 2017 18:40:20 +0100 Subject: [PATCH] Do not duplicate headers views in iconified/hidden frames When the frame running mu4e is in another virtual desktop or iconified, but still contains a visible headers buffer, do not attempt to create a new view. --- mu4e/mu4e-headers.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mu4e/mu4e-headers.el b/mu4e/mu4e-headers.el index 99632b69..1efb2aba 100644 --- a/mu4e/mu4e-headers.el +++ b/mu4e/mu4e-headers.el @@ -1101,7 +1101,7 @@ the query history stack." (mu4e-context-label))))) ;; when the buffer is already visible, select it; otherwise, ;; switch to it. - (unless (get-buffer-window buf 'visible) + (unless (get-buffer-window buf 0) (switch-to-buffer buf)) (run-hook-with-args 'mu4e-headers-search-hook expr) (mu4e~proc-find