]> icculus.org git repositories - dana/openbox.git/blob - openbox/actions/breakchroot.c
Add action_list_run.c/h with action_list_run() and struct ObActionListRun.
[dana/openbox.git] / openbox / actions / breakchroot.c
1 #include "openbox/action.h"
2 #include "openbox/action_list_run.h"
3 #include "openbox/keyboard.h"
4
5 static gboolean run_func(const ObActionListRun *data, gpointer options);
6
7 void action_breakchroot_startup(void)
8 {
9     action_register("BreakChroot",
10                     OB_ACTION_DEFAULT_FILTER_EMPTY,
11                     NULL, NULL,
12                     run_func);
13 }
14
15 /* Always return FALSE because its not interactive */
16 static gboolean run_func(const ObActionListRun *data, gpointer options)
17 {
18     /* break out of one chroot */
19     keyboard_reset_chains(1);
20
21     return FALSE;
22 }