]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Map window when it got the fullscreen hint set
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 21 Aug 2009 10:19:04 +0000 (12:19 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 21 Aug 2009 10:19:46 +0000 (12:19 +0200)
src/manage.c

index dd726c6e71860642b93f24aceba923126948a501..eb9112ecb6caefc2e8d5b34edf497bb8d8611116 100644 (file)
@@ -422,19 +422,20 @@ void reparent_window(xcb_connection_t *conn, xcb_window_t child,
                            and don’t event bother to redraw the layout – that would not change
                            anything anyways */
                         client_toggle_fullscreen(conn, new);
-                        return;
+                        goto map;
                 }
 
         render_layout(conn);
 
+map:
         /* Map the window first to avoid flickering */
         xcb_map_window(conn, child);
         if (map_frame)
                 client_map(conn, new);
 
-        if (CUR_CELL->workspace->fullscreen_client == NULL && !new->dock) {
+        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) {
+                if ((new->workspace->fullscreen_client == NULL) || new->fullscreen) {
                         if (!client_is_floating(new))
                                 new->container->currently_focused = new;
                         if (new->container == CUR_CELL || client_is_floating(new))