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.
next
Michael Stapelberg 2011-07-11 23:17:56 +02:00
parent 036ecba1d1
commit 5555c0fd3b
1 changed files with 6 additions and 5 deletions

View File

@ -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
* (its 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
* (its unmapped afterwards). */
x_raise_con(con);
}
}