~ruther/dwl

5d46ee2289768da82dfd5aa9ac9b57353395c916 — Rutherther 11 months ago 95ac2fd patch/alwaycenter
fix: do not segfault for NULL client monitor
1 files changed, 4 insertions(+), 2 deletions(-)

M dwl.c
M dwl.c => dwl.c +4 -2
@@ 453,8 453,10 @@ applyrules(Client *c)
			}
		}
	}
	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;
	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);
}


Do not follow this link