Check clients for ping response before sending Unresponsive message. Closes issue #186.

This commit is contained in:
Kris Maglione 2010-06-03 10:57:34 -04:00
parent d6c806a01f
commit 7b50a929c4
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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++;
}