From 52984898ec8d59fe42e86a311c7e7dbeec95c611 Mon Sep 17 00:00:00 2001 From: Chris Feng Date: Sat, 8 Aug 2015 11:16:17 +0800 Subject: Fix some input focus issues * Fix input focus lost after moving window to another workspace * Enhance `exwm-reset` to provide user a way to reset input focus when it's lost unexpectedly --- exwm.el | 3 +++ 1 file changed, 3 insertions(+) (limited to 'exwm.el') diff --git a/exwm.el b/exwm.el index 88d767469b03..984f8eee5ecf 100644 --- a/exwm.el +++ b/exwm.el @@ -198,6 +198,9 @@ (with-current-buffer (window-buffer) (when (eq major-mode 'exwm-mode) (when exwm--fullscreen (exwm-layout-unset-fullscreen)) + ;; Force update input focus + (setq exwm-input--focus-id xcb:Window:None) + (exwm-input--update-focus) (exwm-input-grab-keyboard)))) (defmacro exwm--with-current-id (id &rest body) -- cgit 1.4.1