From 668e18fddf11ea3071c92fa348b316366ffaf66a Mon Sep 17 00:00:00 2001 From: bakkeby Date: Wed, 14 Dec 2022 17:56:50 +0100 Subject: [PATCH] seamless restart: Fix positioning of hidden scratchpad windows following restart ref. #315 --- patch/seamless_restart.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/patch/seamless_restart.c b/patch/seamless_restart.c index 7241eea..2be269e 100644 --- a/patch/seamless_restart.c +++ b/patch/seamless_restart.c @@ -466,6 +466,13 @@ restorewindowfloatposition(Client *c, Monitor *m) c->sfw = w; c->sfh = h; + if (c->isfloating) { + c->x = c->sfx; + c->y = c->sfy; + c->w = c->sfw; + c->h = c->sfh; + } + return 1; } #endif // SAVEFLOATS_PATCH