diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-06-26 12:54:19 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-06-26 12:54:19 +0000 |
| commit | 41010812fa1e891e162c88a3c962522832517cc4 (patch) | |
| tree | 6a885b2cf852fc8aaaffff95276d48571a2f036d /openbox/actions/highlight.c | |
| parent | a6af2fc0b953894f80f37fec90ead9277a07b314 (diff) | |
add a highlight action
Diffstat (limited to 'openbox/actions/highlight.c')
| -rw-r--r-- | openbox/actions/highlight.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/openbox/actions/highlight.c b/openbox/actions/highlight.c new file mode 100644 index 00000000..95ba7723 --- /dev/null +++ b/openbox/actions/highlight.c @@ -0,0 +1,21 @@ +#include "openbox/actions.h" +#include "openbox/client.h" + +static gboolean run_func(ObActionsData *data, gpointer options); + +void action_highlight_startup() +{ + actions_register("Highlight", + NULL, NULL, + run_func, + NULL, NULL); +} + +/* Always return FALSE because its not interactive */ +static gboolean run_func(ObActionsData *data, gpointer options) +{ + if (data->client) + client_hilite(data->client, TRUE); + + return FALSE; +} |
