[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/exwm dba43b0 32/64: Fix input focus stealing
From: |
Chris Feng |
Subject: |
[elpa] externals/exwm dba43b0 32/64: Fix input focus stealing |
Date: |
Thu, 17 Sep 2015 23:18:01 +0000 |
branch: externals/exwm
commit dba43b018d791f59f0462b56a46a4eced2d8a3c1
Author: Chris Feng <address@hidden>
Commit: Chris Feng <address@hidden>
Fix input focus stealing
This was fixed in b755296 but broken by 04e4269.
---
exwm-input.el | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/exwm-input.el b/exwm-input.el
index 0ef7232..6b41fff 100644
--- a/exwm-input.el
+++ b/exwm-input.el
@@ -112,20 +112,22 @@ It's updated in several occasions, and only used by
`exwm-input--set-focus'.")
"Update input focus."
(when exwm-input--focus-window
(with-current-buffer (window-buffer exwm-input--focus-window)
- (exwm--log "Set focus on %s" exwm-input--focus-window)
(if (eq major-mode 'exwm-mode)
(progn
(when exwm--floating-frame
(redirect-frame-focus exwm--floating-frame nil)
(select-frame-set-input-focus exwm--floating-frame t))
+ (exwm--log "Set focus on #x%x" exwm--id)
(exwm-input--set-focus exwm--id))
- (select-frame-set-input-focus (window-frame exwm-input--focus-window)
- t)
- (dolist (pair exwm--id-buffer-alist)
- (with-current-buffer (cdr pair)
- (when (and exwm--floating-frame
- (eq exwm--frame exwm-workspace--current))
- (redirect-frame-focus exwm--floating-frame exwm--frame)))))
+ (when (eq (selected-window) exwm-input--focus-window)
+ (exwm--log "Focus on %s" exwm-input--focus-window)
+ (select-frame-set-input-focus (window-frame exwm-input--focus-window)
+ t)
+ (dolist (pair exwm--id-buffer-alist)
+ (with-current-buffer (cdr pair)
+ (when (and exwm--floating-frame
+ (eq exwm--frame exwm-workspace--current))
+ (redirect-frame-focus exwm--floating-frame exwm--frame))))))
(setq exwm-input--focus-window nil))))
(defun exwm-input--finish-key-sequence ()
- [elpa] externals/exwm 63402b0 19/64: Correct layout refresh problems, (continued)
- [elpa] externals/exwm 63402b0 19/64: Correct layout refresh problems, Chris Feng, 2015/09/17
- [elpa] externals/exwm edc70eb 22/64: Remove redundant code caused by the concurrency of events, Chris Feng, 2015/09/17
- [elpa] externals/exwm 2d4104a 23/64: Fix emacsclient bugs, Chris Feng, 2015/09/17
- [elpa] externals/exwm 24b964b 25/64: Ignore repeated `MappingNotify` events, Chris Feng, 2015/09/17
- [elpa] externals/exwm 801185c 27/64: Fix buffer switch problems, Chris Feng, 2015/09/17
- [elpa] externals/exwm 1ce18af 28/64: Center floating windows by default, Chris Feng, 2015/09/17
- [elpa] externals/exwm 048994c 24/64: Remove redundant code caused by the concurrency of events (continued), Chris Feng, 2015/09/17
- [elpa] externals/exwm 35560a4 30/64: Minor fixes for emacsclient, Chris Feng, 2015/09/17
- [elpa] externals/exwm b755296 26/64: Remove redundant code caused by the concurrency of events (contd, 2), Chris Feng, 2015/09/17
- [elpa] externals/exwm 7bfd429 33/64: Honor `value-mask` field in ConfigureRequest event, Chris Feng, 2015/09/17
- [elpa] externals/exwm dba43b0 32/64: Fix input focus stealing,
Chris Feng <=
- [elpa] externals/exwm d998b42 34/64: Provide hooks run when the floating state of a window changes (close #28), Chris Feng, 2015/09/17
- [elpa] externals/exwm 15ad591 35/64: Fix bug when moving a window to the current workspace, Chris Feng, 2015/09/17
- [elpa] externals/exwm 43b00d2 36/64: fix buffer renaming, Chris Feng, 2015/09/17
- [elpa] externals/exwm 2d07429 39/64: Merge branch 'move-window-fix' of https://github.com/pipcet/exwm into pipcet-move-window-fix, Chris Feng, 2015/09/17
- [elpa] externals/exwm 5882015 40/64: Merge branch 'pipcet-move-window-fix', Chris Feng, 2015/09/17
- [elpa] externals/exwm 04e4269 29/64: Improve input focus switch mechanism, Chris Feng, 2015/09/17
- [elpa] externals/exwm 7120291 38/64: Merge branch 'pipcet-robustness', Chris Feng, 2015/09/17
- [elpa] externals/exwm 5210e13 41/64: Only manage windows mapped as the direct children of root window (close #38), Chris Feng, 2015/09/17
- [elpa] externals/exwm 07e59e0 31/64: Fix multi-screen bugs, Chris Feng, 2015/09/17
- [elpa] externals/exwm d1806e9 37/64: Improve code robustness., Chris Feng, 2015/09/17