From: Michael Stapelberg Date: Mon, 11 Jul 2011 21:17:56 +0000 (+0200) Subject: Bugfix: Don’t raise the stacked/tabbed decoration when border != BS_NONE and children... X-Git-Tag: tree-pr4~18 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5555c0fd3ba517427294b9f110880b7af3b7c264;p=i3%2Fi3 Bugfix: Don’t raise the stacked/tabbed decoration when border != BS_NONE and children == 1 (Thanks smartass) Otherwise a black area would cover the top of the child window. --- 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); } }