From 42282897b00a750058ea2c2b8f9aad1303e23f25 Mon Sep 17 00:00:00 2001 From: Philippe Brochard Date: Fri, 11 Jan 2013 23:42:38 +0100 Subject: [PATCH] Optimize hidden rectangle only for windows types in *show-hide-policy-type* (handle frame case) --- src/clfswm-internal.lisp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/clfswm-internal.lisp b/src/clfswm-internal.lisp index 9c28356..1d650c5 100644 --- a/src/clfswm-internal.lisp +++ b/src/clfswm-internal.lisp @@ -1226,7 +1226,8 @@ XINERAMA version 1.1 opcode: 150 (or in-current-root child-current-root-p))))) (hidden-child-p (rect) - (when (member (window-type (child-rect-child rect)) *show-hide-policy-type*) + (when (or (frame-p (child-rect-child rect)) + (member (window-type (child-rect-child rect)) *show-hide-policy-type*)) (dolist (r displayed-child) (when (and (rect-hidden-p r rect) (or (not (xlib:window-p (child-rect-child r))) -- 2.11.4.GIT