only use old size if floating
This commit is contained in:
parent
9b116fa426
commit
2fcb56aa97
14
dwm.c
14
dwm.c
@ -1571,12 +1571,14 @@ setfullscreen(Client *c, int fullscreen)
|
|||||||
PropModeReplace, (unsigned char*)0, 0);
|
PropModeReplace, (unsigned char*)0, 0);
|
||||||
c->isfullscreen = 0;
|
c->isfullscreen = 0;
|
||||||
c->isfloating = c->oldstate;
|
c->isfloating = c->oldstate;
|
||||||
c->bw = c->oldbw;
|
if(c->isfloating){
|
||||||
c->x = c->oldx;
|
c->bw = c->oldbw;
|
||||||
c->y = c->oldy;
|
c->x = c->oldx;
|
||||||
c->w = c->oldw;
|
c->y = c->oldy;
|
||||||
c->h = c->oldh;
|
c->w = c->oldw;
|
||||||
resizeclient(c, c->x, c->y, c->w, c->h);
|
c->h = c->oldh;
|
||||||
|
resizeclient(c, c->x, c->y, c->w, c->h);
|
||||||
|
}
|
||||||
arrange(c->mon);
|
arrange(c->mon);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user