diff options
author | Chris Feng <chris.w.feng@gmail.com> | 2019-03-17T00·00+0000 |
---|---|---|
committer | Chris Feng <chris.w.feng@gmail.com> | 2019-03-17T00·00+0000 |
commit | 397ca5497e82168b0de1cac9a2204dc695b1de5a (patch) | |
tree | ab3bd6d087d08f3dbf22f608cab7bcf3ecf59670 /exwm-core.el | |
parent | dd96fffb52a4e7e5b506b28881b518b0359375c4 (diff) |
Remove loading order dependency on `mouse-autoselect-window'
* exwm-core.el (exwm--get-client-event-mask): Renamed from `exwm--client-event-mask' and used as a function. * exwm-floating.el (exwm-floating--unset-floating): * exwm-layout.el (exwm-layout--hide): * exwm-manage.el (exwm-manage--manage-window): Use it.
Diffstat (limited to 'exwm-core.el')
-rw-r--r-- | exwm-core.el | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/exwm-core.el b/exwm-core.el index 55fbecdddd65..39928e1565af 100644 --- a/exwm-core.el +++ b/exwm-core.el @@ -150,11 +150,12 @@ least SECS seconds later." ,function ,@args)) -(defconst exwm--client-event-mask (logior xcb:EventMask:StructureNotify - xcb:EventMask:PropertyChange - (if mouse-autoselect-window - xcb:EventMask:EnterWindow 0)) - "Event mask set on all managed windows.") +(defun exwm--get-client-event-mask () + "Return event mask set on all managed windows." + (logior xcb:EventMask:StructureNotify + xcb:EventMask:PropertyChange + (if mouse-autoselect-window + xcb:EventMask:EnterWindow 0))) ;; Internal variables (defvar-local exwm--id nil) ;window ID |