summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--patch/seamless_restart.c7
1 files changed, 7 insertions, 0 deletions
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