fix(3p/exwm): Fix frame focus for Emacs 29

See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=58438 for more
details

Depot note: Commit is from
4096d18eea

Change-Id: I4e101533209c35c6f55f14512cc420f007b9da53
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10185
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
This commit is contained in:
Manuel Giraud 2022-10-12 10:47:11 +02:00 committed by tazjin
parent 3a6da21189
commit 3d2d5837ad

View file

@ -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)