about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--third_party/exwm/exwm.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/third_party/exwm/exwm.el b/third_party/exwm/exwm.el
index 57455337202b..4870d4bc4287 100644
--- a/third_party/exwm/exwm.el
+++ b/third_party/exwm/exwm.el
@@ -482,6 +482,9 @@ RAW-DATA contains unmarshalled ClientMessage event data."
       (exwm-workspace-switch (elt data 0)))
      ;; _NET_ACTIVE_WINDOW.
      ((= type xcb:Atom:_NET_ACTIVE_WINDOW)
+      (dolist (f exwm-workspace--list)
+        (when (eq id (frame-parameter f 'exwm-outer-id))
+          (x-focus-frame f t)))
       (let ((buffer (exwm--id->buffer id))
             iconic window)
         (if (buffer-live-p buffer)