]> Dogcows Code - chaz/openbox/blob - openbox/hooks.h
Merge branch 'backport' into work
[chaz/openbox] / openbox / hooks.h
1 #ifndef ob__hooks_h
2 #define ob__hooks_h
3
4 #include <glib.h>
5
6 struct _ObActionsAct;
7 struct _ObClient;
8
9 typedef enum {
10 OB_HOOK_INVALID,
11 OB_HOOK_WIN_NEW,
12 OB_HOOK_WIN_CLOSE,
13 OB_HOOK_WIN_VISIBLE,
14 OB_HOOK_WIN_INVISIBLE,
15 OB_HOOK_WIN_ICONIC,
16 OB_HOOK_WIN_UNICONIC,
17 OB_HOOK_WIN_MAX,
18 OB_HOOK_WIN_UNMAX,
19 OB_HOOK_WIN_SHADE,
20 OB_HOOK_WIN_UNSHADE,
21 OB_HOOK_WIN_FOCUS,
22 OB_HOOK_WIN_UNFOCUS,
23 OB_HOOK_WIN_DESK_CHANGE,
24 OB_HOOK_WIN_DECORATED,
25 OB_HOOK_WIN_UNDECORATED,
26 OB_HOOK_SCREEN_DESK_CHANGE,
27 OB_NUM_HOOKS
28 } ObHook;
29
30 void hooks_startup(gboolean reconfig);
31 void hooks_shutdown(gboolean reconfig);
32
33 ObHook hooks_hook_from_name(const gchar *n);
34
35 void hooks_queue(ObHook hook, struct _ObClient *c);
36 void hooks_run(ObHook hook, struct _ObClient *c);
37
38 void hooks_add(ObHook hook, struct _ObActionsAct *act);
39
40 void hooks_run_queue(void);
41
42 #endif
This page took 0.032801 seconds and 4 git commands to generate.