aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-09-05 16:30:23 -0500
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-09-05 16:35:51 -0500
commit14a1e3e2a2ced87d4f373c93c7caae48ccb02f27 (patch)
tree93adfdf6f511c8e8201313b3ab8ab6be08d34f2d
parenta94d089c405c677ed4ae7e7c340bf52b49126d9c (diff)
set c->prev in mapnotify()
Closes: #300
-rw-r--r--dwl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dwl.c b/dwl.c
index 669580a..9a7b42e 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1423,6 +1423,7 @@ mapnotify(struct wl_listener *listener, void *data)
client_get_geometry(c, &c->geom);
c->geom.width += 2 * c->bw;
c->geom.height += 2 * c->bw;
+ c->prev = c->geom;
/* Insert this client into client lists. */
wl_list_insert(&clients, &c->link);