From 35f15f855d4296359ee6419dd8762bb24c28f07f Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 13 Jun 2014 22:21:00 +0200 Subject: [PATCH] =?utf8?q?Bugfix:=20don=E2=80=99t=20errnously=20render=20f?= =?utf8?q?loating=20fullscreen=20windows=20during=20restart?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit fixes #1263 --- src/render.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/render.c b/src/render.c index 2cc50d57..0ae893cd 100644 --- a/src/render.c +++ b/src/render.c @@ -272,6 +272,12 @@ void render_con(Con *con, bool render_fullscreen) { /* Don’t render floating windows when there is a fullscreen window * on that workspace. Necessary to make floating fullscreen work * correctly (ticket #564). */ + /* If there is no fullscreen->window, this cannot be a + * transient window, so we _know_ we need to skip it. This + * happens during restarts where the container already exists, + * but the window was not yet associated. */ + if (fullscreen != NULL && fullscreen->window == NULL) + continue; if (fullscreen != NULL && fullscreen->window != NULL) { Con *floating_child = con_descend_focused(child); Con *transient_con = floating_child; -- 2.39.2