From a47d0a53652a96ca1df96fc9268757df1431ae55 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 1 Mar 2008 01:52:38 -0500 Subject: queue hooks so that they don't run as each thing happens, instead run them at the end. keep the openbox code paths fast. --- openbox/hooks.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'openbox/hooks.h') diff --git a/openbox/hooks.h b/openbox/hooks.h index 442eef01..322f952d 100644 --- a/openbox/hooks.h +++ b/openbox/hooks.h @@ -32,12 +32,11 @@ void hooks_shutdown(gboolean reconfig); ObHook hooks_hook_from_name(const gchar *n); -/*! Run a hook. - @param on TRUE if the hook is being run cuz a state was turned on, FALSE - if a state was turned off -*/ +void hooks_queue(ObHook hook, struct _ObClient *c); void hooks_run(ObHook hook, struct _ObClient *c); void hooks_add(ObHook hook, struct _ObActionsAct *act); +void hooks_run_queue(void); + #endif -- cgit v1.2.3