when you close a window that you already tried to close and its not responding to pings, then do a kill the next time

This commit is contained in:
Dana Jansens 2008-01-15 22:00:21 -05:00
parent d3e9fc8941
commit 07994cb2dc

View file

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