From 2fcb56aa97b44ac760316746d0e60f15c83fad7a Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Fri, 11 Jun 2021 09:39:45 +0200 Subject: [PATCH] only use old size if floating --- dwm.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/dwm.c b/dwm.c index a6774db..9fa3296 100644 --- a/dwm.c +++ b/dwm.c @@ -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); } }