From 517833569d340e5fd923135717eb5844fac5c50f Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 10 Jul 2011 20:05:49 +0200 Subject: [PATCH] x: raise the stack decoration above the stack windows (reduces flickering) This reduces flickering when opening new windows in a stack, see the comment. --- src/render.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/render.c b/src/render.c index b1388b31..17c1fde7 100644 --- a/src/render.c +++ b/src/render.c @@ -344,6 +344,12 @@ void render_con(Con *con, bool render_fullscreen) { * aswell. */ 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); } }