diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-06-22 05:02:25 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-06-22 05:02:25 +0000 |
| commit | bb0fd965c50289c02619113f113927294fa5be23 (patch) | |
| tree | 9a15f1a6eaa28f16a557cacba547fba0bf75d50e /openbox/actions/breakchroot.c | |
| parent | 29c4cf4a15bc5fa97ba746b03a5e334f989c645e (diff) | |
add breakchroot action
Diffstat (limited to 'openbox/actions/breakchroot.c')
| -rw-r--r-- | openbox/actions/breakchroot.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/openbox/actions/breakchroot.c b/openbox/actions/breakchroot.c new file mode 100644 index 00000000..bfdbf16c --- /dev/null +++ b/openbox/actions/breakchroot.c @@ -0,0 +1,21 @@ +#include "openbox/actions.h" +#include "openbox/keyboard.h" + +static gboolean run_func(ObActionsData *data, gpointer options); + +void action_breakchroot_startup() +{ + actions_register("BreakChroot", + NULL, NULL, + run_func, + NULL, NULL); +} + +/* Always return FALSE because its not interactive */ +static gboolean run_func(ObActionsData *data, gpointer options) +{ + /* break out of one chroot */ + keyboard_reset_chains(1); + + return FALSE; +} |
