[client] Remove newcomer attribute
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
be108acc32
commit
67b2702b7d
1
client.c
1
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 */
|
||||
|
|
11
layout.c
11
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);
|
||||
|
|
Loading…
Reference in New Issue