summaryrefslogtreecommitdiff
path: root/openbox/hooks.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2008-03-01 01:52:38 -0500
committerDana Jansens <danakj@orodu.net>2008-03-01 01:52:38 -0500
commita47d0a53652a96ca1df96fc9268757df1431ae55 (patch)
tree5815a3fab5d8332a5a62b148ab9486ba28e66c15 /openbox/hooks.h
parent93a38d46bfec781ff9783c0d5ff065f7b2f2b875 (diff)
queue hooks so that they don't run as each thing happens, instead run them at the end. keep the openbox code paths fast.
Diffstat (limited to 'openbox/hooks.h')
-rw-r--r--openbox/hooks.h7
1 files changed, 3 insertions, 4 deletions
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