From 685dca1c5fb1fac160ad845a710bc2c30ff87751 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 13 May 2007 07:38:35 +0000 Subject: likewise if a window is unmanaged and we were trying to give it focus, we want to know about it - also if the window gets hidden for some other reason, we also want to know about it. add a notifier for windows being hidden, and use that instead - it handles both cases. --- openbox/client.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'openbox/client.h') diff --git a/openbox/client.h b/openbox/client.h index bc7c32e8..1a2273f4 100644 --- a/openbox/client.h +++ b/openbox/client.h @@ -312,6 +312,10 @@ typedef void (*ObClientCallback)(ObClient *client, gpointer data); void client_add_destructor(ObClientCallback func, gpointer data); void client_remove_destructor(ObClientCallback func); +/*! Get notified when the client is hidden */ +void client_add_hide_notify(ObClientCallback func, gpointer data); +void client_remove_hide_notify(ObClientCallback func); + /*! Manages all existing windows */ void client_manage_all(); /*! Manages a given window -- cgit v1.2.3