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
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_MSG_TO(self->window, self->window, wm_protocols,
prop_atoms.wm_delete_window, event_curtime, 0, 0, 0, prop_atoms.wm_delete_window, event_curtime, 0, 0, 0,
NoEventMask); NoEventMask);
if (self->ping) if (self->ping)
ping_start(self, client_ping_event); ping_start(self, client_ping_event);
}
} }
void client_kill(ObClient *self) void client_kill(ObClient *self)