[client] Remove newcomer attribute

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-05-23 23:01:41 +02:00
parent be108acc32
commit 67b2702b7d
3 changed files with 2 additions and 12 deletions

View File

@ -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 */

View File

@ -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);

View File

@ -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 */