remove ftview attribute

This commit is contained in:
Julien Danjou 2007-10-19 15:41:20 +02:00
parent 25d12961a8
commit 7a921fbc5e
4 changed files with 1 additions and 16 deletions

View File

@ -415,7 +415,6 @@ manage(Display *disp, Window w, XWindowAttributes *wa, awesome_config *awesomeco
c = p_new(Client, 1);
c->win = w;
c->ftview = True;
c->x = c->rw = wa->x;
c->y = c->ry = wa->y;
c->w = c->rw = wa->width;

View File

@ -134,8 +134,6 @@ struct Client
int screen;
/** Client physical screen */
int phys_screen;
/** First time viewed on new layout */
Bool ftview;
};
/** Main configuration structure */

View File

@ -184,7 +184,6 @@ uicb_setlayout(awesome_config * awesomeconf,
const char *arg)
{
int i, j;
Client *c;
if(arg)
{
@ -206,9 +205,6 @@ uicb_setlayout(awesome_config * awesomeconf,
if (awesomeconf->tags[j].selected)
awesomeconf->tags[j].layout = &awesomeconf->layouts[i];
for(c = *awesomeconf->clients; c; c = c->next)
c->ftview = True;
if(*awesomeconf->client_sel)
arrange(awesomeconf);
else

View File

@ -29,14 +29,6 @@ layout_floating(awesome_config *awesomeconf)
for(c = *awesomeconf->clients; c; c = c->next)
if(isvisible(c, awesomeconf->screen, awesomeconf->tags, awesomeconf->ntags))
{
if(c->ftview)
{
resize(c, c->rx, c->ry, c->rw, c->rh, awesomeconf, True);
c->ftview = False;
}
else
resize(c, c->x, c->y, c->w, c->h, awesomeconf, True);
}
resize(c, c->rx, c->ry, c->rw, c->rh, awesomeconf, True);
}
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99