about summary refs log tree commit diff
path: root/exwm-core.el
diff options
context:
space:
mode:
authorChris Feng <chris.w.feng@gmail.com>2015-09-19T08·46+0800
committerChris Feng <chris.w.feng@gmail.com>2015-09-19T08·53+0800
commitb35430429e96ce6b2bb46a4d155d86acdba8d768 (patch)
tree22752f9ca9600ea0bbdaf0d140fadfc9af16cb3a /exwm-core.el
parent921e6e5be989b94b3b62d6db72d31fb16c24ee30 (diff)
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).
Diffstat (limited to 'exwm-core.el')
-rw-r--r--exwm-core.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/exwm-core.el b/exwm-core.el
index 74eb94fc4969..0f39c2d344e8 100644
--- a/exwm-core.el
+++ b/exwm-core.el
@@ -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)))