Check _MOTIF_WM_HINTS when attempting to manage an X window

* exwm-core.el: New buffer-local variable exwm--mwm-hints.
* exwm-manage.el: New variable exwm--atom-_MOTIF_WM_HINTS for holding the
  value of _MOTIF_WM_HINTS atom; new function exwm--update-mwm-hints for
  updating the _MOTIF_WM_HINTS property of an X window.
* exwm-manage.el (exwm-manage--init): Intern the _MOTIF_WM_HINTS atom.
* exwm-manage.el (exwm-manage--manage-window): Avoid managing windows
  without decoration (implied by _MOTIF_WM_HINTS).
This commit is contained in:
Chris Feng 2015-09-19 16:46:08 +08:00
parent 921e6e5be9
commit b35430429e
2 changed files with 35 additions and 5 deletions

View file

@ -111,6 +111,8 @@
;; WM_HINTS
(defvar-local exwm--hints-input nil) ;FIXME
(defvar-local exwm--hints-urgency nil)
;; _MOTIF_WM_HINTS
(defvar-local exwm--mwm-hints nil)
(defvar exwm-mode-map
(let ((map (make-sparse-keymap)))