Revert "remove borders modification on maximize()"
This reverts commit d8ef2748a6
.
This commit is contained in:
parent
00b5fdc5b0
commit
9865d44a88
4
client.c
4
client.c
|
@ -855,6 +855,8 @@ client_maximize(Client *c, int x, int y, int w, int h)
|
||||||
{
|
{
|
||||||
if((c->ismax = !c->ismax))
|
if((c->ismax = !c->ismax))
|
||||||
{
|
{
|
||||||
|
c->oldborder = c->border;
|
||||||
|
c->border = 0;
|
||||||
c->wasfloating = c->isfloating;
|
c->wasfloating = c->isfloating;
|
||||||
c->isfloating = True;
|
c->isfloating = True;
|
||||||
client_resize(c, x, y, w, h, False, True);
|
client_resize(c, x, y, w, h, False, True);
|
||||||
|
@ -864,6 +866,8 @@ client_maximize(Client *c, int x, int y, int w, int h)
|
||||||
else
|
else
|
||||||
c->isfloating = False;
|
c->isfloating = False;
|
||||||
|
|
||||||
|
c->border = c->oldborder;
|
||||||
|
|
||||||
arrange(c->screen);
|
arrange(c->screen);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue