diff options
Diffstat (limited to 'openbox/mainloop.c')
| -rw-r--r-- | openbox/mainloop.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |
