]> Dogcows Code - chaz/openbox/blobdiff - openbox/client.c
Allow client destroy notify functions to be removed based on the data associated...
[chaz/openbox] / openbox / client.c
index 8634707c19e5bc0a0d03534ee58ed15da97eef33..07db26bfa7040e2f318f2d8fa170e94b374345a4 100644 (file)
@@ -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;
This page took 0.023325 seconds and 4 git commands to generate.