From 97bc8f4b8600b5d95495eee48f79c0e1451c7963 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 26 Nov 2010 19:24:14 +0100 Subject: [PATCH] =?utf8?q?Bugfix:=20Don=E2=80=99t=20draw=20decorations=20o?= =?utf8?q?f=20CT=5FFLOATING=5FCONs?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/x.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/x.c b/src/x.c index 0de6c65a..c489dca7 100644 --- a/src/x.c +++ b/src/x.c @@ -224,11 +224,15 @@ void x_window_kill(xcb_window_t window) { * */ void x_draw_decoration(Con *con) { - /* this code needs to run for: + /* This code needs to run for: * • leaf containers * • non-leaf containers which are in a stacking container + * + * It does not need to run for: + * • floating containers (they don’t have a decoration) */ - if (!con_is_leaf(con) && con->parent->layout != L_STACKED) + if ((!con_is_leaf(con) && con->parent->layout != L_STACKED) || + con->type == CT_FLOATING_CON) return; DLOG("decoration should be rendered for con %p\n", con); -- 2.39.5