diff --git a/cmd/wmii/area.c b/cmd/wmii/area.c index 00d539cd..2b7a5904 100644 --- a/cmd/wmii/area.c +++ b/cmd/wmii/area.c @@ -273,7 +273,7 @@ area_detach(Frame *f) { column_detach(f); if(v->sel->sel == nil && v->floating->sel) - if(v->floating->sel->client->nofocus) + if(!v->floating->sel->client->nofocus) v->sel = v->floating; view_arrange(v); diff --git a/cmd/wmii/ewmh.c b/cmd/wmii/ewmh.c index a719f6db..7352d6ee 100644 --- a/cmd/wmii/ewmh.c +++ b/cmd/wmii/ewmh.c @@ -79,7 +79,7 @@ ewmh_init(void) { void ewmh_checkresponsive(Client *c) { - if(nsec() / 1000000 - c->w.ewmh.ping > PingTime) { + if(c->w.ewmh.ping > 0 && nsec() / 1000000 - c->w.ewmh.ping > PingTime) { event("Unresponsive %#C\n", c); c->dead++; }