]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Render containers after setting the client active (Thanks Mirko)
authorMichael Stapelberg <michael@stapelberg.de>
Thu, 26 Nov 2009 20:32:53 +0000 (21:32 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Thu, 26 Nov 2009 20:39:09 +0000 (21:39 +0100)
This lead to race conditions when the window did not change its title
after mapping and was displayed in a tabbed container.

src/manage.c

index 98d01073afe7e9efdbbfaed89d126d6f23dcb63d..e754d9b5562db275149219e4e28d5d8207601b4e 100644 (file)
@@ -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);
                 }