From b755296f547938d0f97d6aa49b8cb0d726de9eb9 Mon Sep 17 00:00:00 2001 From: Chris Feng Date: Tue, 11 Aug 2015 09:18:21 +0800 Subject: Remove redundant code caused by the concurrency of events (contd, 2) * Remove locks that are no longer required * Also fix #20 (inactive workspace frame steals input focus) --- exwm-manage.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'exwm-manage.el') diff --git a/exwm-manage.el b/exwm-manage.el index 9d9860789874..79cff221e0bf 100644 --- a/exwm-manage.el +++ b/exwm-manage.el @@ -45,7 +45,6 @@ corresponding buffer.") (defun exwm-manage--manage-window (id) "Manage window ID." (exwm--log "Try to manage #x%x" id) - (setq exwm-input--focus-lock t) (catch 'return ;; Ensure it's not managed (when (assoc id exwm--id-buffer-alist) @@ -136,10 +135,8 @@ corresponding buffer.") (exwm-floating--unset-floating id)) (exwm-input-grab-keyboard id) (exwm-workspace--update-switch-history) - (setq exwm-input--focus-lock nil) ;unlocked in advance (with-current-buffer (exwm--id->buffer id) - (run-hooks 'exwm-manage-finish-hook)))) - (setq exwm-input--focus-lock nil)) + (run-hooks 'exwm-manage-finish-hook))))) (defun exwm-manage--unmanage-window (id &optional withdraw-only) "Unmanage window ID." -- cgit 1.4.1