]> Dogcows Code - chaz/openbox/blobdiff - openbox/mainloop.c
can tell when a window that was "closed" has stopped responding now
[chaz/openbox] / openbox / mainloop.c
index 7c6a956648c480401104ddf3a6dd90175fb1de0b..c1ede830a69eabcd379e2a6576a734cf35ef678b 100644 (file)
@@ -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;
This page took 0.022236 seconds and 4 git commands to generate.