]> 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 591a7159e2cb5d91aa0810c065b06c3e2286f7ac..c1ede830a69eabcd379e2a6576a734cf35ef678b 100644 (file)
@@ -216,8 +216,6 @@ void ob_main_loop_destroy(ObMainLoop *loop)
 
         /* only do this if we're the last loop destroyed */
         if (!all_loops) {
-            guint i;
-
             /* grab all the signals that cause core dumps */
             for (i = 0; i < NUM_CORE_SIGNALS; ++i) {
                 if (all_signals[core_signals[i]].installed) {
@@ -562,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.02044 seconds and 4 git commands to generate.