Skip to content

Commit

Permalink
dont send keypresses to application window in line mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus Huesgen committed Sep 8, 2015
1 parent 637ac15 commit 8c8eee6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions exwm-input.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))))

Expand Down

0 comments on commit 8c8eee6

Please sign in to comment.