diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-06-22 14:35:51 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-06-22 14:35:51 +0000 |
| commit | cf478381b3e386dc0478403cf1a73b4d3ec6fa61 (patch) | |
| tree | 00ae93df5b681333f375c13e48c89f304d943ea7 /openbox/actions/iconify.c | |
| parent | b0fa629769ef17cae28f137aad80f8c4798f7592 (diff) | |
add the iconify action
Diffstat (limited to 'openbox/actions/iconify.c')
| -rw-r--r-- | openbox/actions/iconify.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/openbox/actions/iconify.c b/openbox/actions/iconify.c new file mode 100644 index 00000000..b82684ea --- /dev/null +++ b/openbox/actions/iconify.c @@ -0,0 +1,24 @@ +#include "openbox/actions.h" +#include "openbox/client.h" + +static gboolean run_func(ObActionsData *data, gpointer options); + +void action_iconify_startup() +{ + actions_register("Iconify", + NULL, NULL, + run_func, + NULL, NULL); +} + +/* Always return FALSE because its not interactive */ +static gboolean run_func(ObActionsData *data, gpointer options) +{ + if (data->client) { + actions_client_move(data, TRUE); + client_iconify(data->client, TRUE, TRUE, FALSE); + actions_client_move(data, FALSE); + } + + return FALSE; +} |
