mirror of
https://github.com/emacs-exwm/exwm.git
synced 2024-11-23 21:17:59 +01:00
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:
parent
df8de92113
commit
b75c89cae2
1 changed files with 2 additions and 6 deletions
|
@ -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))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue