[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.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->geometry.height = c->f_geometry.height = c->m_geometry.height = wgeom->height;
|
||||||
c->oldborder = wgeom->border_width;
|
c->oldborder = wgeom->border_width;
|
||||||
c->newcomer = true;
|
|
||||||
c->layer = c->oldlayer = LAYER_TILE;
|
c->layer = c->oldlayer = LAYER_TILE;
|
||||||
|
|
||||||
/* update window title */
|
/* update window title */
|
||||||
|
|
11
layout.c
11
layout.c
|
@ -50,23 +50,16 @@ arrange(int screen)
|
||||||
|
|
||||||
for(c = globalconf.clients; c; c = c->next)
|
for(c = globalconf.clients; c; c = c->next)
|
||||||
{
|
{
|
||||||
if(client_isvisible(c, screen) && !c->newcomer)
|
if(client_isvisible(c, screen))
|
||||||
client_unban(c);
|
client_unban(c);
|
||||||
/* we don't touch other screens windows */
|
/* we don't touch other screens windows */
|
||||||
else if(c->screen == screen || c->newcomer)
|
else if(c->screen == screen)
|
||||||
client_ban(c);
|
client_ban(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(curlay)
|
if(curlay)
|
||||||
curlay(screen);
|
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,
|
qp_c = xcb_query_pointer_unchecked(globalconf.connection,
|
||||||
xcb_aux_get_screen(globalconf.connection,
|
xcb_aux_get_screen(globalconf.connection,
|
||||||
phys_screen)->root);
|
phys_screen)->root);
|
||||||
|
|
|
@ -256,8 +256,6 @@ struct client_t
|
||||||
int screen;
|
int screen;
|
||||||
/** Client physical screen */
|
/** Client physical screen */
|
||||||
int phys_screen;
|
int phys_screen;
|
||||||
/** True if the client is a new one */
|
|
||||||
bool newcomer;
|
|
||||||
/** Titlebar */
|
/** Titlebar */
|
||||||
titlebar_t titlebar;
|
titlebar_t titlebar;
|
||||||
/** Titlebar window */
|
/** Titlebar window */
|
||||||
|
|
Loading…
Reference in New Issue