X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Faction.c;h=80b0a8f11ce20a4511a640ef0ae23e6b18374cd0;hb=bdf287572cc2d81330fb82e3ccaff37f43389720;hp=556fc22564a50e36bbdee3f21341529b2c2f9324;hpb=9e6aa531d0cc0d9a7000c9856c6a8a159f1d8248;p=chaz%2Fopenbox diff --git a/openbox/action.c b/openbox/action.c index 556fc225..80b0a8f1 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -892,6 +892,11 @@ ActionString actionstrings[] = action_growtoedge, setup_action_growtoedge_east }, + { + "breakchroot", + action_break_chroot, + NULL + }, { NULL, NULL, @@ -1727,7 +1732,7 @@ void action_showmenu(union ActionData *data) { if (data->showmenu.name) { menu_show(data->showmenu.name, data->any.x, data->any.y, - data->showmenu.any.c); + data->any.button, data->showmenu.any.c); } } @@ -1899,3 +1904,9 @@ void action_unshow_desktop(union ActionData *data) { screen_show_desktop(FALSE); } + +void action_break_chroot(union ActionData *data) +{ + /* break out of one chroot */ + keyboard_reset_chains(1); +}