emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/exwm 7bc4ea5 2/2: Update systemtray when initializing


From: Chris Feng
Subject: [elpa] externals/exwm 7bc4ea5 2/2: Update systemtray when initializing
Date: Wed, 30 Aug 2017 13:06:46 -0400 (EDT)

branch: externals/exwm
commit 7bc4ea5a6ee1d6d2948e8ba7e065be8ac33b8a47
Author: Chris Feng <address@hidden>
Commit: Chris Feng <address@hidden>

    Update systemtray when initializing
    
    * exwm-systemtray.el (exwm-systemtray--init): Systemtray is not placed
    correctly when there's a panel launched before EXWM.
---
 exwm-systemtray.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/exwm-systemtray.el b/exwm-systemtray.el
index 82a2ccd..48bd8ea 100644
--- a/exwm-systemtray.el
+++ b/exwm-systemtray.el
@@ -472,7 +472,10 @@ You shall use the default value if using auto-hide 
minibuffer.")
   (add-hook 'exwm-workspace--update-workareas-hook
             #'exwm-systemtray--on-struts-update)
   (when (boundp 'exwm-randr-refresh-hook)
-    (add-hook 'exwm-randr-refresh-hook #'exwm-systemtray--on-randr-refresh)))
+    (add-hook 'exwm-randr-refresh-hook #'exwm-systemtray--on-randr-refresh))
+  ;; The struts can be updated already.
+  (when exwm-workspace--workareas
+    (exwm-systemtray--on-struts-update)))
 
 (defun exwm-systemtray--exit ()
   "Exit the systemtray module."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]