mirror of
https://github.com/0intro/wmii
synced 2024-11-22 05:42:05 +03:00
Check clients for ping response before sending Unresponsive message. Closes issue #186.
This commit is contained in:
parent
d6c806a01f
commit
7b50a929c4
@ -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);
|
||||
|
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user