set c->prev in mapnotify()

Closes: #300
main
Leonardo Hernández Hernández 2022-09-05 16:30:23 -05:00
parent a94d089c40
commit 14a1e3e2a2
No known key found for this signature in database
GPG Key ID: E538897EE11B9624
1 changed files with 1 additions and 0 deletions

1
dwl.c
View File

@ -1423,6 +1423,7 @@ mapnotify(struct wl_listener *listener, void *data)
client_get_geometry(c, &c->geom); client_get_geometry(c, &c->geom);
c->geom.width += 2 * c->bw; c->geom.width += 2 * c->bw;
c->geom.height += 2 * c->bw; c->geom.height += 2 * c->bw;
c->prev = c->geom;
/* Insert this client into client lists. */ /* Insert this client into client lists. */
wl_list_insert(&clients, &c->link); wl_list_insert(&clients, &c->link);