about summary refs log tree commit diff
path: root/exwm.el
diff options
context:
space:
mode:
authorChris Feng <chris.w.feng@gmail.com>2019-06-16T00·00+0000
committerChris Feng <chris.w.feng@gmail.com>2019-06-16T00·00+0000
commit605b0a9575564c5e864e3a6381d18e3dcbfbde04 (patch)
treeded79ca9bc7f4054626f381afad6b7920a833aad /exwm.el
parentaa92c7be8cb92ae74617b8d3d431431d2aa7edac (diff)
Allow panel to hide floating X windows
* exwm.el (exwm--on-ClientMessage): Use `exwm-floating-hide' to hide X
windows on receiving `WM_CHANGE_STATE' events.
Diffstat (limited to 'exwm.el')
-rw-r--r--exwm.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/exwm.el b/exwm.el
index 7d301ab4bd89..ec49748c2dc8 100644
--- a/exwm.el
+++ b/exwm.el
@@ -555,7 +555,9 @@
         (when (and (buffer-live-p buffer)
                    (= (elt data 0) xcb:icccm:WM_STATE:IconicState))
           (with-current-buffer buffer
-            (bury-buffer)))))
+            (if exwm--floating-frame
+                (call-interactively #'exwm-floating-hide)
+              (bury-buffer))))))
      (t
       (exwm--log "Unhandled: %s(%d)"
                  (x-get-atom-name type exwm-workspace--current) type)))))