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); }