emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/exwm 1aeec4a: Restrict the check of _MOTIF_WM_HINTS


From: Chris Feng
Subject: [elpa] externals/exwm 1aeec4a: Restrict the check of _MOTIF_WM_HINTS
Date: Sat, 10 Oct 2015 13:03:53 +0000

branch: externals/exwm
commit 1aeec4abf4de594841b05310753ae7fab527eb72
Author: Chris Feng <address@hidden>
Commit: Chris Feng <address@hidden>

    Restrict the check of _MOTIF_WM_HINTS
    
    * exwm-manage.el (exwm-manage--manage-window): Restrict the check of
      _MOTIF_WM_HINTS to only Java applications (since some other applications
      like Evince would also set it).
---
 exwm-manage.el |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/exwm-manage.el b/exwm-manage.el
index ae707f7..fb6ca16 100644
--- a/exwm-manage.el
+++ b/exwm-manage.el
@@ -90,12 +90,15 @@ corresponding buffer.")
                   (memq xcb:Atom:_NET_WM_WINDOW_TYPE_UTILITY exwm-window-type)
                   (memq xcb:Atom:_NET_WM_WINDOW_TYPE_DIALOG exwm-window-type)
                   (memq xcb:Atom:_NET_WM_WINDOW_TYPE_NORMAL exwm-window-type)))
-             ;; Check _MOTIF_WM_HINTS (mainly for Java applications)
+             ;; Check _MOTIF_WM_HINTS for Java applications
              ;; See <Xm/MwmUtil.h> for the definitions of these fields
              (and exwm--mwm-hints
+                  exwm-instance-name
                   (/= 0 (logand (elt exwm--mwm-hints 0) ;MotifWmHints.flags
-                                2))     ;MWM_HINTS_DECORATIONS
+                                2))             ;MWM_HINTS_DECORATIONS
                   (= 0 (elt exwm--mwm-hints 2)) ;MotifWmHints.decorations
+                  ;; Java applications only
+                  (string-prefix-p "sun-awt-X11-" exwm-instance-name)
                   ;; Floating windows only
                   (or exwm-transient-for exwm--fixed-size
                       (memq xcb:Atom:_NET_WM_WINDOW_TYPE_UTILITY



reply via email to

[Prev in Thread] Current Thread [Next in Thread]