From 3b6a7402962a02a058fdfb867d8532b06a3e8bb4 Mon Sep 17 00:00:00 2001 From: Moritz Schaefer <mail@moritzs.de> Date: Thu, 7 Dec 2023 21:37:27 +0100 Subject: [PATCH] Workaround for #759, fixing focusing issues when switching between EXWM and emacs buffers --- exwm-layout.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/exwm-layout.el b/exwm-layout.el index e47620d..c297806 100644 --- a/exwm-layout.el +++ b/exwm-layout.el @@ -182,7 +182,10 @@ See variable `exwm-layout-auto-iconify'." :window id :value-mask xcb:CW:EventMask :event-mask (exwm--get-client-event-mask))) (exwm-layout--set-state id xcb:icccm:WM_STATE:IconicState) - (cl-pushnew xcb:Atom:_NET_WM_STATE_HIDDEN exwm--ewmh-state) + ;; Commented as a workaround to some emacs buffers not receiving + ;; focus appropriately. See also + ;; https://github.com/ch11ng/exwm/issues/759#issuecomment-692824523 + ;; (cl-pushnew xcb:Atom:_NET_WM_STATE_HIDDEN exwm--ewmh-state) (exwm-layout--set-ewmh-state id) (exwm-layout--auto-iconify) (xcb:flush exwm--connection))))