summaryrefslogtreecommitdiff
path: root/openbox/openbox.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2008-02-29 23:16:31 -0500
committerDana Jansens <danakj@orodu.net>2008-02-29 23:37:57 -0500
commitdb781556d63d1a50bd1b1b4b6b5423ef703bf2c7 (patch)
tree8418803f72b28ce910d6e11f59237aa8a1b4089f /openbox/openbox.c
parent173b9b764887929b7ff5d30b3e33f0602b0afda6 (diff)
Add a hook system. They hooks don't run yet but they parse from the config file.
Diffstat (limited to 'openbox/openbox.c')
-rw-r--r--openbox/openbox.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbox/openbox.c b/openbox/openbox.c
index 49587abc..79b080d2 100644
--- a/openbox/openbox.c
+++ b/openbox/openbox.c
@@ -42,6 +42,7 @@
#include "config.h"
#include "ping.h"
#include "prompt.h"
+#include "hooks.h"
#include "gettext.h"
#include "render/render.h"
#include "render/theme.h"
@@ -297,6 +298,7 @@ gint main(gint argc, gchar **argv)
/* focus_backup is used for stacking, so this needs to come before
anything that calls stacking_add */
sn_startup(reconfigure);
+ hooks_startup(reconfigure);
window_startup(reconfigure);
focus_startup(reconfigure);
focus_cycle_startup(reconfigure);
@@ -373,6 +375,7 @@ gint main(gint argc, gchar **argv)
focus_cycle_shutdown(reconfigure);
focus_shutdown(reconfigure);
window_shutdown(reconfigure);
+ hooks_shutdown(reconfigure);
sn_shutdown(reconfigure);
event_shutdown(reconfigure);
config_shutdown();