branch: externals/exwm
commit 43af6bb6a295fc843bd8b1f890cca1c246293e90
Author: Chris Feng <chris.w.f...@gmail.com>
Commit: Chris Feng <chris.w.f...@gmail.com>

    Drop support for _NET_WM_STATE_MODAL
    
    ; Modal X windows are not necessarily floating.
    
    * exwm.el (exwm--on-ClientMessage, exwm--init-icccm-ewmh): Drop support
    for _NET_WM_STATE_MODAL.
---
 exwm.el |   16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)

diff --git a/exwm.el b/exwm.el
index 76f8541..cb7fd80 100644
--- a/exwm.el
+++ b/exwm.el
@@ -440,20 +440,6 @@
               (xcb:flush exwm--connection))))
         (when buffer                    ;ensure it's managed
           (with-current-buffer buffer
-            ;; _NET_WM_STATE_MODAL
-            (when (memq xcb:Atom:_NET_WM_STATE_MODAL props)
-              (cond ((= action xcb:ewmh:_NET_WM_STATE_ADD)
-                     (unless exwm--floating-frame
-                       (exwm-floating--set-floating id))
-                     (push xcb:Atom:_NET_WM_STATE_MODAL props-new))
-                    ((= action xcb:ewmh:_NET_WM_STATE_REMOVE)
-                     (when exwm--floating-frame
-                       (exwm-floating--unset-floating id)))
-                    ((= action xcb:ewmh:_NET_WM_STATE_TOGGLE)
-                     (if exwm--floating-frame
-                         (exwm-floating--unset-floating id)
-                       (exwm-floating--set-floating id)
-                       (push xcb:Atom:_NET_WM_STATE_MODAL props-new)))))
             ;; _NET_WM_STATE_FULLSCREEN
             (when (or (memq xcb:Atom:_NET_WM_STATE_FULLSCREEN props)
                       (memq xcb:Atom:_NET_WM_STATE_ABOVE props))
@@ -557,7 +543,7 @@
                             xcb:Atom:_NET_WM_WINDOW_TYPE_NORMAL
                             ;;
                             xcb:Atom:_NET_WM_STATE
-                            xcb:Atom:_NET_WM_STATE_MODAL
+                            ;; xcb:Atom:_NET_WM_STATE_MODAL
                             ;; xcb:Atom:_NET_WM_STATE_STICKY
                             ;; xcb:Atom:_NET_WM_STATE_MAXIMIZED_VERT
                             ;; xcb:Atom:_NET_WM_STATE_MAXIMIZED_HORZ

Reply via email to