about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteven Allen <steven@stebalien.com>2022-08-06T22·01-0700
committerAdrián Medraño Calvo <adrian@medranocalvo.com>2022-11-22T00·00+0000
commitcb0093411b89d4da668957cb489885885a585448 (patch)
treed2021eb8f8945676198f2472d5981e8e6a8e385d
parente9cc0962cc478640afe3001e39ff32577d73d6a0 (diff)
Pick the correct line height for the systemtray
* exwm-systemtray.el (exwm-systemtray--init): Use the line-height
of the minibuffer-window, not that of the selected one.
-rw-r--r--exwm-systemtray.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/exwm-systemtray.el b/exwm-systemtray.el
index 8bb5bcc3c8..0f19986624 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