Fix systemtray position when menu-bar / tool-bar is enabled

* exwm-systemtray.el (exwm-systemtray--on-workspace-switch)
(exwm-systemtray--on-randr-refresh): Take menu-bar / tool-bar into
account when placing systemtray.
This commit is contained in:
Chris Feng 2018-05-27 23:29:36 +08:00
parent df8de92113
commit b75c89cae2

View file

@ -330,9 +330,7 @@ You shall use the default value if using auto-hide minibuffer."
(frame-parameter exwm-workspace--current (frame-parameter exwm-workspace--current
'window-id)) 'window-id))
:x 0 :x 0
:y (- (elt (elt exwm-workspace--workareas :y (- (frame-pixel-height exwm-workspace--current)
exwm-workspace-current-index)
3)
exwm-systemtray-height)))) exwm-systemtray-height))))
(exwm-systemtray--refresh)) (exwm-systemtray--refresh))
@ -343,9 +341,7 @@ You shall use the default value if using auto-hide minibuffer."
(make-instance 'xcb:ConfigureWindow (make-instance 'xcb:ConfigureWindow
:window exwm-systemtray--embedder :window exwm-systemtray--embedder
:value-mask xcb:ConfigWindow:Y :value-mask xcb:ConfigWindow:Y
:y (- (elt (elt exwm-workspace--workareas :y (- (frame-pixel-height exwm-workspace--current)
exwm-workspace-current-index)
3)
exwm-systemtray-height)))) exwm-systemtray-height))))
(exwm-systemtray--refresh)) (exwm-systemtray--refresh))