do not lose border after fullscreen

This commit is contained in:
Alexander Bocken 2022-04-28 14:32:43 +02:00
parent b61a38d642
commit c03c11059f
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8

2
dwm.c
View File

@ -1583,8 +1583,8 @@ 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){ if(c->isfloating){
c->bw = c->oldbw;
c->x = c->oldx; c->x = c->oldx;
c->y = c->oldy; c->y = c->oldy;
c->w = c->oldw; c->w = c->oldw;