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.
This commit is contained in:
Steven Allen 2022-08-06 15:01:40 -07:00 committed by Adrián Medraño Calvo
parent e9cc0962cc
commit cb0093411b

View file

@ -487,7 +487,8 @@ indicate how to support actual transparency."
(cl-assert (not exwm-systemtray--embedder-window)) (cl-assert (not exwm-systemtray--embedder-window))
(unless exwm-systemtray-height (unless exwm-systemtray-height
(setq exwm-systemtray-height (max exwm-systemtray--icon-min-size (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. ;; Create a new connection.
(setq exwm-systemtray--connection (xcb:connect)) (setq exwm-systemtray--connection (xcb:connect))
(set-process-query-on-exit-flag (slot-value exwm-systemtray--connection (set-process-query-on-exit-flag (slot-value exwm-systemtray--connection