summaryrefslogtreecommitdiff
path: root/openbox/client.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-08-30 17:46:23 +0000
committerDana Jansens <danakj@orodu.net>2003-08-30 17:46:23 +0000
commit8e76e328639ba42cdafa5306f924b0491faec969 (patch)
tree286b5d45b2adece699b87455aa9fbfadb7e86aec /openbox/client.h
parent2c6c0757fa497f4c1e0648bcbb1927c0fa12862f (diff)
add destructor functions for clients that you acn subscribe with, and use these instead of hardcoding special cases in the unmanage code
Diffstat (limited to 'openbox/client.h')
-rw-r--r--openbox/client.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/openbox/client.h b/openbox/client.h
index eec1b754..758851e1 100644
--- a/openbox/client.h
+++ b/openbox/client.h
@@ -243,6 +243,11 @@ extern GList *client_list;
void client_startup();
void client_shutdown();
+typedef void (*ObClientDestructorFunc)(ObClient *c);
+
+void client_add_destructor(ObClientDestructorFunc func);
+void client_remove_destructor(ObClientDestructorFunc func);
+
/*! Manages all existing windows */
void client_manage_all();
/*! Manages a given window */