From 8e76e328639ba42cdafa5306f924b0491faec969 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 30 Aug 2003 17:46:23 +0000 Subject: add destructor functions for clients that you acn subscribe with, and use these instead of hardcoding special cases in the unmanage code --- openbox/client.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'openbox/client.h') 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 */ -- cgit v1.2.3