~ruther/dwl

ce5ed05addd565754264aecf36798d65bb8b5f7f — Rutherther 8 months ago 91b7948 + c867174
Merge branch 'v0.7/alwayscenter' into v0.7/patched-base
1 files changed, 8 insertions(+), 0 deletions(-)

M dwl.c
M dwl.c => dwl.c +8 -0
@@ 575,6 575,10 @@ applyrules(Client *c)
			mon = p->mon;
			newtags = p->tags;
		}
  }
	if (mon) {
		c->geom.x = (mon->w.width - c->geom.width) / 2 + mon->m.x;
		c->geom.y = (mon->w.height - c->geom.height) / 2 + mon->m.y;
	}
	setmon(c, mon, newtags);
	attachclients(mon);


@@ 2294,6 2298,10 @@ mapnotify(struct wl_listener *listener, void *data)
	 * try to apply rules for them */
	if ((p = client_get_parent(c))) {
		c->isfloating = 1;
		if (p->mon) {
			c->geom.x = (p->mon->w.width - c->geom.width) / 2 + p->mon->m.x;
			c->geom.y = (p->mon->w.height - c->geom.height) / 2 + p->mon->m.y;
		}
		setmon(c, p->mon, p->tags);
	} else {
		applyrules(c);

Do not follow this link