diff --git a/client.c b/client.c index 0a7c3a39e..e404aeca0 100644 --- a/client.c +++ b/client.c @@ -360,7 +360,6 @@ client_manage(xcb_window_t w, xcb_get_geometry_reply_t *wgeom, int screen) c->geometry.width = c->f_geometry.width = c->m_geometry.width = wgeom->width; c->geometry.height = c->f_geometry.height = c->m_geometry.height = wgeom->height; c->oldborder = wgeom->border_width; - c->newcomer = true; c->layer = c->oldlayer = LAYER_TILE; /* update window title */ diff --git a/layout.c b/layout.c index 0b0b4fcd9..f925a73cc 100644 --- a/layout.c +++ b/layout.c @@ -50,23 +50,16 @@ arrange(int screen) for(c = globalconf.clients; c; c = c->next) { - if(client_isvisible(c, screen) && !c->newcomer) + if(client_isvisible(c, screen)) client_unban(c); /* we don't touch other screens windows */ - else if(c->screen == screen || c->newcomer) + else if(c->screen == screen) client_ban(c); } if(curlay) curlay(screen); - for(c = globalconf.clients; c; c = c->next) - if(c->newcomer && client_isvisible(c, screen)) - { - c->newcomer = false; - client_unban(c); - } - qp_c = xcb_query_pointer_unchecked(globalconf.connection, xcb_aux_get_screen(globalconf.connection, phys_screen)->root); diff --git a/structs.h b/structs.h index b9decc388..ad2611b46 100644 --- a/structs.h +++ b/structs.h @@ -256,8 +256,6 @@ struct client_t int screen; /** Client physical screen */ int phys_screen; - /** True if the client is a new one */ - bool newcomer; /** Titlebar */ titlebar_t titlebar; /** Titlebar window */