From 5555c0fd3ba517427294b9f110880b7af3b7c264 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 11 Jul 2011 23:17:56 +0200 Subject: [PATCH] =?UTF-8?q?Bugfix:=20Don=E2=80=99t=20raise=20the=20stacked?= =?UTF-8?q?/tabbed=20decoration=20when=20border=20!=3D=20BS=5FNONE=20and?= =?UTF-8?q?=20children=20=3D=3D=201=20(Thanks=20smartass)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise a black area would cover the top of the child window. --- src/render.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/render.c b/src/render.c index 17c1fde7..a7a9be56 100644 --- a/src/render.c +++ b/src/render.c @@ -345,11 +345,12 @@ void render_con(Con *con, bool render_fullscreen) { render_con(child, false); } - /* Raise the stack con itself. This will put the stack decoration on - * top of every stack window. That way, when a new window is opened in - * the stack, the old window will not obscure part of the decoration - * (it’s unmapped afterwards). */ - x_raise_con(con); + if (children != 1) + /* Raise the stack con itself. This will put the stack decoration on + * top of every stack window. That way, when a new window is opened in + * the stack, the old window will not obscure part of the decoration + * (it’s unmapped afterwards). */ + x_raise_con(con); } }