remove useless isbanned attribute on Client
This commit is contained in:
parent
7a921fbc5e
commit
03681846fa
3
client.c
3
client.c
|
@ -243,7 +243,6 @@ ban(Client * c)
|
||||||
{
|
{
|
||||||
XUnmapWindow(c->display, c->win);
|
XUnmapWindow(c->display, c->win);
|
||||||
window_setstate(c->display, c->win, IconicState);
|
window_setstate(c->display, c->win, IconicState);
|
||||||
c->isbanned = True;
|
|
||||||
c->unmapped = True;
|
c->unmapped = True;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -469,7 +468,6 @@ manage(Display *disp, Window w, XWindowAttributes *wa, awesome_config *awesomeco
|
||||||
saveprops(c, awesomeconf->ntags);
|
saveprops(c, awesomeconf->ntags);
|
||||||
client_attach(awesomeconf->clients, c);
|
client_attach(awesomeconf->clients, c);
|
||||||
XMoveResizeWindow(disp, c->win, c->x, c->y, c->w, c->h); /* some windows require this */
|
XMoveResizeWindow(disp, c->win, c->x, c->y, c->w, c->h); /* some windows require this */
|
||||||
c->isbanned = True;
|
|
||||||
arrange(awesomeconf);
|
arrange(awesomeconf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -579,7 +577,6 @@ unban(Client *c)
|
||||||
{
|
{
|
||||||
XMapWindow(c->display, c->win);
|
XMapWindow(c->display, c->win);
|
||||||
window_setstate(c->display, c->win, NormalState);
|
window_setstate(c->display, c->win, NormalState);
|
||||||
c->isbanned = False;
|
|
||||||
c->unmapped = False;
|
c->unmapped = False;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
config.h
2
config.h
|
@ -108,7 +108,7 @@ struct Client
|
||||||
Bool unmapped;
|
Bool unmapped;
|
||||||
long flags;
|
long flags;
|
||||||
int border, oldborder;
|
int border, oldborder;
|
||||||
Bool isbanned, isfixed, ismax, isfloating, wasfloating;
|
Bool isfixed, ismax, isfloating, wasfloating;
|
||||||
/** Tags for the client */
|
/** Tags for the client */
|
||||||
Bool *tags;
|
Bool *tags;
|
||||||
/** Next client */
|
/** Next client */
|
||||||
|
|
Loading…
Reference in New Issue