diff options
author | Chris Feng <chris.w.feng@gmail.com> | 2019-02-06T00·00+0000 |
---|---|---|
committer | Chris Feng <chris.w.feng@gmail.com> | 2019-02-06T00·00+0000 |
commit | 0f7269c4ec666eb8bcf2616abbb5af46087cbdea (patch) | |
tree | 6b6ceb5b7f120a4671178b33d687ffa1da312629 /exwm-manage.el | |
parent | 44629818bacf3e3a10a37e570fdee2e963dbcc7b (diff) |
Add input method support
; The code is basically refactored from ; https://github.com/ch11ng/exim to get better maintenance. * exwm-xim.el: New module making Emacs's builtin input methods usable for interacting with X windows. * exwm-core.el (exwm--intern-atom): New function for intern X11 atoms. * exwm-input.el (exwm-input--init): * exwm-manage.el (exwm-manage--init): Use it.
Diffstat (limited to 'exwm-manage.el')
-rw-r--r-- | exwm-manage.el | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/exwm-manage.el b/exwm-manage.el index 759ec0b77666..b41512c485c0 100644 --- a/exwm-manage.el +++ b/exwm-manage.el @@ -715,14 +715,7 @@ border-width: %d; sibling: #x%x; stack-mode: %d" "Initialize manage module." ;; Intern _MOTIF_WM_HINTS (exwm--log) - (let ((atom-name "_MOTIF_WM_HINTS")) - (setq exwm-manage--_MOTIF_WM_HINTS - (slot-value (xcb:+request-unchecked+reply exwm--connection - (make-instance 'xcb:InternAtom - :only-if-exists 0 - :name-len (length atom-name) - :name atom-name)) - 'atom))) + (setq exwm-manage--_MOTIF_WM_HINTS (exwm--intern-atom "_MOTIF_WM_HINTS")) (add-hook 'after-make-frame-functions #'exwm-manage--add-frame) (add-hook 'delete-frame-functions #'exwm-manage--remove-frame) (xcb:+event exwm--connection 'xcb:ConfigureRequest |