From b35430429e96ce6b2bb46a4d155d86acdba8d768 Mon Sep 17 00:00:00 2001 From: Chris Feng Date: Sat, 19 Sep 2015 16:46:08 +0800 Subject: 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). --- exwm-core.el | 2 ++ 1 file changed, 2 insertions(+) (limited to 'exwm-core.el') 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))) -- cgit 1.4.1