From fb7a71da202632c7301ada67c8b4420bfb8d8fbe Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 15 Jan 2008 21:40:15 -0500 Subject: can tell when a window that was "closed" has stopped responding now --- openbox/mainloop.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'openbox/mainloop.c') diff --git a/openbox/mainloop.c b/openbox/mainloop.c index 7c6a9566..c1ede830 100644 --- a/openbox/mainloop.c +++ b/openbox/mainloop.c @@ -560,7 +560,9 @@ void ob_main_loop_timeout_remove_data(ObMainLoop *loop, GSourceFunc handler, for (it = loop->timers; it; it = g_slist_next(it)) { ObMainLoopTimer *t = it->data; - if (t->func == handler && t->equal(t->data, data)) { + if (t->func == handler && + (t->equal ? t->equal(t->data, data) : (t->data == data))) + { t->del_me = TRUE; if (cancel_dest) t->destroy = NULL; -- cgit v1.2.3