mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 11:46:31 +00:00
set c->prev
in setmon() and not in mapnotify()
This commit is contained in:
parent
14c010a0d6
commit
1aacfada29
1 changed files with 1 additions and 1 deletions
2
dwl.c
2
dwl.c
|
@ -1424,7 +1424,6 @@ 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);
|
||||||
|
@ -1960,6 +1959,7 @@ setmon(Client *c, Monitor *m, unsigned int newtags)
|
||||||
if (oldmon == m)
|
if (oldmon == m)
|
||||||
return;
|
return;
|
||||||
c->mon = m;
|
c->mon = m;
|
||||||
|
c->prev = c->geom;
|
||||||
|
|
||||||
/* TODO leave/enter is not optimal but works */
|
/* TODO leave/enter is not optimal but works */
|
||||||
if (oldmon) {
|
if (oldmon) {
|
||||||
|
|
Loading…
Reference in a new issue