]> Dogcows Code - chaz/openbox/commitdiff
when you close a window that you already tried to close and its not responding to...
authorDana Jansens <danakj@orodu.net>
Wed, 16 Jan 2008 03:00:21 +0000 (22:00 -0500)
committerDana Jansens <danakj@orodu.net>
Wed, 16 Jan 2008 03:00:21 +0000 (22:00 -0500)
openbox/client.c

index a4d045dcd0903bb0bddb240e5b556a40421a90c2..517482c7aa3a7c939485a6f40229ddd1df986e7b 100644 (file)
@@ -3195,20 +3195,16 @@ void client_close(ObClient *self)
     if (!self->delete_window)
         client_kill(self);
 
-    /*
-      XXX: itd be cool to do timeouts and shit here for killing the client's
-      process off
-      like... if the window is around after 5 seconds, then the close button
-      turns a nice red, and if this function is called again, the client is
-      explicitly killed.
-    */
-
-    PROP_MSG_TO(self->window, self->window, wm_protocols,
-                prop_atoms.wm_delete_window, event_curtime, 0, 0, 0,
-                NoEventMask);
+    if (self->not_responding)
+        client_kill(self);
+    else {
+        PROP_MSG_TO(self->window, self->window, wm_protocols,
+                    prop_atoms.wm_delete_window, event_curtime, 0, 0, 0,
+                    NoEventMask);
 
-    if (self->ping)
-        ping_start(self, client_ping_event);
+        if (self->ping)
+            ping_start(self, client_ping_event);
+    }
 }
 
 void client_kill(ObClient *self)
This page took 0.033901 seconds and 4 git commands to generate.