diff options
Diffstat (limited to 'src/actions.c')
-rw-r--r-- | src/actions.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/actions.c b/src/actions.c index 3b54b76..9f1cdeb 100644 --- a/src/actions.c +++ b/src/actions.c @@ -96,6 +96,8 @@ static user_command user_commands[] = {"fdump", cmd_fdump, arg_STRING}, {"frestore", cmd_frestore, arg_STRING}, {"verbexec", cmd_verbexec, arg_STRING}, + {"unmanage", cmd_unmanage, arg_STRING}, + {"clrunmanaged", cmd_clrunmanaged, arg_VOID}, /* Commands to set default behavior. */ {"defbargravity", cmd_defbargravity, arg_STRING}, @@ -486,6 +488,28 @@ parse_keydesc (char *s) return p; } +/* Unmanage window */ +char * +cmd_unmanage (int interactive, char *data) +{ + if (data == NULL && !interactive) + return list_unmanaged_windows(); + + if (data) + add_unmanaged_window(data); + else message(" unmanage: at least one argument required "); + + return NULL; +} + +/* Clear the unmanaged window list */ +char * +cmd_clrunmanaged (int interactive, char *data) +{ + clear_unmanaged_list(); + return NULL; +} + char * cmd_bind (int interactive, char *data) { |