From 605b0a9575564c5e864e3a6381d18e3dcbfbde04 Mon Sep 17 00:00:00 2001 From: Chris Feng Date: Sun, 16 Jun 2019 00:00:00 +0000 Subject: [PATCH] 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. --- exwm.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exwm.el b/exwm.el index 7d301ab4b..ec49748c2 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)))))