branch: externals/exwm
commit aeb65036566a049e5063a75ef9d1d5f870ab5487
Author: Steven Allen <[email protected]>
Commit: Steven Allen <[email protected]>

    Add existing frames to the list of managed frames on init
    
    Otherwise, we miss the initial frame, if any.
    
    * exwm-manage.el (exwm-manage--init): Add existing frames to the list of
    managed frame IDs on initialization.
---
 exwm-manage.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/exwm-manage.el b/exwm-manage.el
index 5941f182b9..cccf9fedaf 100644
--- a/exwm-manage.el
+++ b/exwm-manage.el
@@ -806,7 +806,11 @@ SYNTHETIC indicates whether the event is a synthetic 
event."
   "Initialize manage module."
   ;; Intern _MOTIF_WM_HINTS
   (exwm--log)
-  (setq exwm-manage--_MOTIF_WM_HINTS (exwm--intern-atom "_MOTIF_WM_HINTS"))
+  (setq exwm-manage--_MOTIF_WM_HINTS (exwm--intern-atom "_MOTIF_WM_HINTS")
+        exwm-manage--frame-outer-id-list nil)
+  (dolist (frame (frame-list))
+    (when (display-graphic-p frame)
+      (exwm-manage--add-frame frame)))
   (add-hook 'after-make-frame-functions #'exwm-manage--add-frame)
   (add-hook 'delete-frame-functions #'exwm-manage--remove-frame)
   (xcb:+event exwm--connection 'xcb:ConfigureRequest

Reply via email to