]> icculus.org git repositories - dana/openbox.git/blob - openbox/actions/close.c
Merge branch 'backport' into work
[dana/openbox.git] / openbox / actions / close.c
1 #include "openbox/actions.h"
2 #include "openbox/client.h"
3
4 static gboolean run_func(ObActionsData *data, gpointer options);
5
6 void action_close_startup(void)
7 {
8     actions_register("Close",
9                      NULL, NULL,
10                      run_func);
11 }
12
13 /* Always return FALSE because its not interactive */
14 static gboolean run_func(ObActionsData *data, gpointer options)
15 {
16     if (data->client) client_close(data->client);
17
18     return FALSE;
19 }