From: Michael Stapelberg Date: Thu, 26 Nov 2009 20:32:53 +0000 (+0100) Subject: Bugfix: Render containers after setting the client active (Thanks Mirko) X-Git-Tag: 3.d-bf1~13 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5304e7188ff85a144d312d7a7fddca3d90656c12;p=i3%2Fi3 Bugfix: Render containers after setting the client active (Thanks Mirko) This lead to race conditions when the window did not change its title after mapping and was displayed in a tabbed container. --- diff --git a/src/manage.c b/src/manage.c index 98d01073..e754d9b5 100644 --- a/src/manage.c +++ b/src/manage.c @@ -444,8 +444,10 @@ map: if ((CUR_CELL->workspace->fullscreen_client == NULL || new->fullscreen) && !new->dock) { /* Focus the new window if we’re not in fullscreen mode and if it is not a dock window */ if ((new->workspace->fullscreen_client == NULL) || new->fullscreen) { - if (!client_is_floating(new)) + if (!client_is_floating(new)) { new->container->currently_focused = new; + render_container(conn, new->container); + } if (new->container == CUR_CELL || client_is_floating(new)) xcb_set_input_focus(conn, XCB_INPUT_FOCUS_POINTER_ROOT, new->child, XCB_CURRENT_TIME); }