diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-01-15 22:36:45 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-01-15 22:36:45 -0500 |
| commit | d5c824cfd4ec84155772a5c482b0ffdc99dc1ab9 (patch) | |
| tree | c610cbc8599fcbafd37be166730f4a3fd051aa47 /openbox/client.c | |
| parent | 810afd8597da355039e289218abed6c062585870 (diff) | |
only ping windows that we need to
Diffstat (limited to 'openbox/client.c')
| -rw-r--r-- | openbox/client.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/openbox/client.c b/openbox/client.c index 85f5e691..1f7ce97b 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -602,8 +602,11 @@ void client_manage(Window window) /* update the list hints */ client_set_list(); - /* watch for when the application stops responding */ - if (self->ping) ping_start(self, client_ping_event); + /* watch for when the application stops responding. only do this for + normal windows, i.e. windows which have titlebars and close buttons + and things like that */ + if (self->ping && client_normal(self)) + ping_start(self, client_ping_event); /* free the ObAppSettings shallow copy */ g_free(settings); @@ -687,7 +690,8 @@ void client_unmanage(ObClient *self) XChangeSaveSet(ob_display, self->window, SetModeDelete); /* stop pinging the window */ - if (self->ping) ping_stop(self); + if (self->ping && client_normal(self)) + ping_stop(self); /* update the focus lists */ focus_order_remove(self); |
