about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--exwm-systemtray.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/exwm-systemtray.el b/exwm-systemtray.el
index 8bb5bcc3c835..0f199866241d 100644
--- a/exwm-systemtray.el
+++ b/exwm-systemtray.el
@@ -487,7 +487,8 @@ indicate how to support actual transparency."
   (cl-assert (not exwm-systemtray--embedder-window))
   (unless exwm-systemtray-height
     (setq exwm-systemtray-height (max exwm-systemtray--icon-min-size
-                                      (line-pixel-height))))
+                                      (with-selected-window (minibuffer-window)
+                                        (line-pixel-height)))))
   ;; Create a new connection.
   (setq exwm-systemtray--connection (xcb:connect))
   (set-process-query-on-exit-flag (slot-value exwm-systemtray--connection