summaryrefslogtreecommitdiff
path: root/src/actions.c
diff options
context:
space:
mode:
authorAli Gholami Rudi <aliqrudi@gmail.com>2008-09-20 22:18:43 +0430
committerShawn <sabetts@juicebox.(none)>2008-10-10 14:15:23 -0700
commitb57b21ee318287d035269cb526444a756a93cae9 (patch)
treef9b69bdb88bd18e48084a4198df83ef1c43a5d95 /src/actions.c
parentddf7f1104af0663ba730b5b82607843fe988109e (diff)
downloadratpoison-b57b21ee318287d035269cb526444a756a93cae9.zip
add gother command
Diffstat (limited to 'src/actions.c')
-rw-r--r--src/actions.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/actions.c b/src/actions.c
index 7d73fd2..5d7b335 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -256,6 +256,7 @@ init_user_commands(void)
"Name: ", arg_STRING);
add_command ("gnext", cmd_gnext, 0, 0, 0);
add_command ("gprev", cmd_gprev, 0, 0, 0);
+ add_command ("gother", cmd_gother, 0, 0, 0);
add_command ("gravity", cmd_gravity, 1, 0, 0,
"Gravity: ", arg_GRAVITY);
add_command ("groups", cmd_groups, 0, 0, 0);
@@ -4825,6 +4826,13 @@ cmd_gprev (int interactive, struct cmdarg **args)
}
cmdret *
+cmd_gother (int interactive, struct cmdarg **args)
+{
+ set_current_group (group_last_group ());
+ return cmdret_new (RET_SUCCESS, NULL);
+}
+
+cmdret *
cmd_gnew (int interactive, struct cmdarg **args)
{
set_current_group (group_add_new_group (ARG_STRING(0)));