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

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

[elpa] externals/exwm 9bea3c9 3/3: Make input focus continue to work aft


From: Chris Feng
Subject: [elpa] externals/exwm 9bea3c9 3/3: Make input focus continue to work after EXWM exits
Date: Sun, 22 Sep 2019 10:16:29 -0400 (EDT)

branch: externals/exwm
commit 9bea3c9bcd02dc2647881feaaacbf71f6c25ff64
Author: Chris Feng <address@hidden>
Commit: Chris Feng <address@hidden>

    Make input focus continue to work after EXWM exits
    
    * exwm-input.el (exwm-input--exit): Set input focus 'revert-to' to
    'PointerRoot' so that user can set input focus to X windows with
    pointer after EXWM exits (and there's no other WM).
---
 exwm-input.el | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/exwm-input.el b/exwm-input.el
index c5eedc9..c8cf018 100644
--- a/exwm-input.el
+++ b/exwm-input.el
@@ -1147,7 +1147,14 @@ where both ORIGINAL-KEY and SIMULATED-KEY are key 
sequences."
   (when exwm-input--update-focus-defer-timer
     (cancel-timer exwm-input--update-focus-defer-timer))
   (when exwm-input--update-focus-timer
-    (cancel-timer exwm-input--update-focus-timer)))
+    (cancel-timer exwm-input--update-focus-timer))
+  ;; Make input focus working even without a WM.
+  (xcb:+request exwm--connection
+      (make-instance 'xcb:SetInputFocus
+                     :revert-to xcb:InputFocus:PointerRoot
+                     :focus exwm--root
+                     :time xcb:Time:CurrentTime))
+  (xcb:flush exwm--connection))
 
 
 



reply via email to

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