From 8c8eee6e3a34cab60e9b1a20fa8ce30ceac0324b Mon Sep 17 00:00:00 2001 From: Marcus Huesgen Date: Tue, 8 Sep 2015 10:32:26 +0200 Subject: [PATCH] dont send keypresses to application window in line mode --- exwm-input.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/exwm-input.el b/exwm-input.el index 69d2aff..c7dab9d 100644 --- a/exwm-input.el +++ b/exwm-input.el @@ -255,12 +255,11 @@ It's updated in several occasions, and only used by `exwm-input--set-focus'.") (memq event exwm-input--global-prefix-keys) (memq event exwm-input-prefix-keys) (memq event exwm-input--simulation-prefix-keys))) - (setq mode xcb:Allow:AsyncKeyboard) - (unless minibuffer-window (setq exwm-input--during-key-sequence t)) - (push event unread-command-events)) + (unless minibuffer-window (setq exwm-input--during-key-sequence t))) + (push event unread-command-events) (xcb:+request exwm--connection (make-instance 'xcb:AllowEvents - :mode (or mode xcb:Allow:ReplayKeyboard) + :mode (or xcb:Allow:AsyncKeyboard xcb:Allow:ReplayKeyboard) :time xcb:Time:CurrentTime)) (xcb:flush exwm--connection))))