diff options
author | Chris Feng <chris.w.feng@gmail.com> | 2018-02-21T16·26+0800 |
---|---|---|
committer | Chris Feng <chris.w.feng@gmail.com> | 2018-02-21T16·26+0800 |
commit | 6200417697544317ee91badd702654def9a1d645 (patch) | |
tree | 603bea3cd7dd655d55dba53aec8864b92c4f7162 /exwm-core.el | |
parent | 86f2215be3db25a6b6aacd6f8b0cb132b049e034 (diff) |
Grab global keys on top-level X windows
* exwm-input.el (exwm-input--on-CreateNotify): New function for grabbing global keys on newly created X windows. (exwm-input--update-global-prefix-keys): Grab global keys on top-level X windows instead of the root window. (exwm-input--grab-global-prefix-keys): New function for grabbing global keys on X windows. (exwm-input--release-keyboard): Grab global keys in char-mode. (exwm-input--init): Select CreateNotify events. * exwm-core.el (exwm--unlock): * exwm-input.el (exwm-input--on-FocusIn, exwm-input--init): Do not handle FocusIn events on the root window.
Diffstat (limited to 'exwm-core.el')
-rw-r--r-- | exwm-core.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/exwm-core.el b/exwm-core.el index f64a7f25fa31..41c3b5772495 100644 --- a/exwm-core.el +++ b/exwm-core.el @@ -93,8 +93,7 @@ :window exwm--root :value-mask xcb:CW:EventMask :event-mask (eval-when-compile - (logior xcb:EventMask:FocusChange - xcb:EventMask:SubstructureRedirect + (logior xcb:EventMask:SubstructureRedirect xcb:EventMask:StructureNotify)))) (xcb:flush exwm--connection)) |