]> Dogcows Code - chaz/openbox/commitdiff
only ping windows that we need to
authorDana Jansens <danakj@orodu.net>
Wed, 16 Jan 2008 03:36:45 +0000 (22:36 -0500)
committerDana Jansens <danakj@orodu.net>
Wed, 16 Jan 2008 03:36:45 +0000 (22:36 -0500)
openbox/client.c

index 85f5e69191b1683f8d98e9489ada8b8e303bf204..1f7ce97bcc34389ff9239294c1a248cc4835c231 100644 (file)
@@ -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);
This page took 0.031413 seconds and 4 git commands to generate.