only use old size if floating

This commit is contained in:
Alexander Bocken 2021-06-11 09:39:45 +02:00
parent 9b116fa426
commit 2fcb56aa97
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8

14
dwm.c
View File

@ -1571,12 +1571,14 @@ setfullscreen(Client *c, int fullscreen)
PropModeReplace, (unsigned char*)0, 0);
c->isfullscreen = 0;
c->isfloating = c->oldstate;
c->bw = c->oldbw;
c->x = c->oldx;
c->y = c->oldy;
c->w = c->oldw;
c->h = c->oldh;
resizeclient(c, c->x, c->y, c->w, c->h);
if(c->isfloating){
c->bw = c->oldbw;
c->x = c->oldx;
c->y = c->oldy;
c->w = c->oldw;
c->h = c->oldh;
resizeclient(c, c->x, c->y, c->w, c->h);
}
arrange(c->mon);
}
}