summaryrefslogtreecommitdiffhomepage
path: root/patch/seamless_restart.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2022-12-14 17:56:50 +0100
committerbakkeby <[email protected]>2022-12-14 17:56:50 +0100
commit668e18fddf11ea3071c92fa348b316366ffaf66a (patch)
tree1bc50c117ae90505c6dbbb4e996ca99b9e40b7a5 /patch/seamless_restart.c
parent4c32f6f52d024c5bea66f00ee88ffd05c7676345 (diff)
downloaddwm-flexipatch-master.tar.gz
dwm-flexipatch-master.zip
seamless restart: Fix positioning of hidden scratchpad windows following restart ref. #315master
Diffstat (limited to 'patch/seamless_restart.c')
-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