diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-01-16 19:21:42 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-01-16 19:21:42 -0500 |
| commit | cccc57fdb04b2e5602254f1eb623acc95f9a032e (patch) | |
| tree | 9742573149fa7a4a898c036a39902e711920c3e7 /openbox/client.c | |
| parent | 7630f660350bc39d0535a5aeb1da69ba25baf26b (diff) | |
make the ping hash tables work correctly. don't need to stop pinging, it will automatically. and not all windows get pings, even tho we get notified that they are being destroyed
Diffstat (limited to 'openbox/client.c')
| -rw-r--r-- | openbox/client.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/openbox/client.c b/openbox/client.c index 6a6ec2bd..63245a3c 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -609,7 +609,10 @@ void client_manage(Window window) /* 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 */ + and things like that. + we don't need to stop pinging on unmanage, because it will be handled + automatically by the destroy callback! + */ if (self->ping && client_normal(self)) ping_start(self, client_ping_event); @@ -694,10 +697,6 @@ void client_unmanage(ObClient *self) /* remove the window from our save set */ XChangeSaveSet(ob_display, self->window, SetModeDelete); - /* stop pinging the window */ - if (self->ping && client_normal(self)) - ping_stop(self); - /* update the focus lists */ focus_order_remove(self); if (client_focused(self)) { |
