remove ftview attribute
This commit is contained in:
parent
25d12961a8
commit
7a921fbc5e
1
client.c
1
client.c
|
@ -415,7 +415,6 @@ manage(Display *disp, Window w, XWindowAttributes *wa, awesome_config *awesomeco
|
||||||
|
|
||||||
c = p_new(Client, 1);
|
c = p_new(Client, 1);
|
||||||
c->win = w;
|
c->win = w;
|
||||||
c->ftview = True;
|
|
||||||
c->x = c->rw = wa->x;
|
c->x = c->rw = wa->x;
|
||||||
c->y = c->ry = wa->y;
|
c->y = c->ry = wa->y;
|
||||||
c->w = c->rw = wa->width;
|
c->w = c->rw = wa->width;
|
||||||
|
|
2
config.h
2
config.h
|
@ -134,8 +134,6 @@ struct Client
|
||||||
int screen;
|
int screen;
|
||||||
/** Client physical screen */
|
/** Client physical screen */
|
||||||
int phys_screen;
|
int phys_screen;
|
||||||
/** First time viewed on new layout */
|
|
||||||
Bool ftview;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Main configuration structure */
|
/** Main configuration structure */
|
||||||
|
|
4
layout.c
4
layout.c
|
@ -184,7 +184,6 @@ uicb_setlayout(awesome_config * awesomeconf,
|
||||||
const char *arg)
|
const char *arg)
|
||||||
{
|
{
|
||||||
int i, j;
|
int i, j;
|
||||||
Client *c;
|
|
||||||
|
|
||||||
if(arg)
|
if(arg)
|
||||||
{
|
{
|
||||||
|
@ -206,9 +205,6 @@ uicb_setlayout(awesome_config * awesomeconf,
|
||||||
if (awesomeconf->tags[j].selected)
|
if (awesomeconf->tags[j].selected)
|
||||||
awesomeconf->tags[j].layout = &awesomeconf->layouts[i];
|
awesomeconf->tags[j].layout = &awesomeconf->layouts[i];
|
||||||
|
|
||||||
for(c = *awesomeconf->clients; c; c = c->next)
|
|
||||||
c->ftview = True;
|
|
||||||
|
|
||||||
if(*awesomeconf->client_sel)
|
if(*awesomeconf->client_sel)
|
||||||
arrange(awesomeconf);
|
arrange(awesomeconf);
|
||||||
else
|
else
|
||||||
|
|
|
@ -29,14 +29,6 @@ layout_floating(awesome_config *awesomeconf)
|
||||||
|
|
||||||
for(c = *awesomeconf->clients; c; c = c->next)
|
for(c = *awesomeconf->clients; c; c = c->next)
|
||||||
if(isvisible(c, awesomeconf->screen, awesomeconf->tags, awesomeconf->ntags))
|
if(isvisible(c, awesomeconf->screen, awesomeconf->tags, awesomeconf->ntags))
|
||||||
{
|
resize(c, c->rx, c->ry, c->rw, c->rh, awesomeconf, True);
|
||||||
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99
|
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99
|
||||||
|
|
Loading…
Reference in New Issue