X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fclient.c;h=07db26bfa7040e2f318f2d8fa170e94b374345a4;hb=52cdea653c9b3a7055bca40e4019f599d9291bb6;hp=8634707c19e5bc0a0d03534ee58ed15da97eef33;hpb=34b332c22acb9f7f194eb8de80b5f4a6529e7e16;p=chaz%2Fopenbox diff --git a/openbox/client.c b/openbox/client.c index 8634707c..07db26bf 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -167,6 +167,21 @@ void client_remove_destroy_notify(ObClientCallback func) } } +void client_remove_destroy_notify_data(ObClientCallback func, gpointer data) +{ + GSList *it; + + for (it = client_destroy_notifies; it; it = g_slist_next(it)) { + ClientCallback *d = it->data; + if (d->func == func && d->data == data) { + g_slice_free(ClientCallback, d); + client_destroy_notifies = + g_slist_delete_link(client_destroy_notifies, it); + break; + } + } +} + void client_set_list(void) { Window *windows, *win_it;