]> icculus.org git repositories - dana/openbox.git/blob - openbox/actions/close.c
Actions say what kind of filter they would like by default (one window or all)
[dana/openbox.git] / openbox / actions / close.c
1 #include "openbox/action.h"
2 #include "openbox/client.h"
3
4 static gboolean run_func(ObActionData *data, gpointer options);
5
6 void action_close_startup(void)
7 {
8     action_register("Close", OB_ACTION_DEFAULT_FILTER_SINGLE,
9                     NULL, NULL, run_func);
10 }
11
12 /* Always return FALSE because its not interactive */
13 static gboolean run_func(ObActionData *data, gpointer options)
14 {
15     if (data->client) client_close(data->client);
16
17     return FALSE;
18 }