]>
Dogcows Code - chaz/openbox/blob - shade.c
a8db09899cc9cf5736a578032ff814f7a324b199
1 #include "openbox/actions.h"
2 #include "openbox/client.h"
4 static gboolean
run_func_on(ObActionsData
*data
, gpointer options
);
5 static gboolean
run_func_off(ObActionsData
*data
, gpointer options
);
6 static gboolean
run_func_toggle(ObActionsData
*data
, gpointer options
);
8 void action_shade_startup()
10 actions_register("Shade", NULL
, NULL
, run_func_on
, NULL
, NULL
);
11 actions_register("Unshade", NULL
, NULL
, run_func_off
, NULL
, NULL
);
12 actions_register("ToggleShade", NULL
, NULL
, run_func_toggle
, NULL
, NULL
);
15 /* Always return FALSE because its not interactive */
16 static gboolean
run_func_on(ObActionsData
*data
, gpointer options
)
19 actions_client_move(data
, TRUE
);
20 client_shade(data
->client
, TRUE
);
21 actions_client_move(data
, FALSE
);
26 /* Always return FALSE because its not interactive */
27 static gboolean
run_func_off(ObActionsData
*data
, gpointer options
)
30 actions_client_move(data
, TRUE
);
31 client_shade(data
->client
, FALSE
);
32 actions_client_move(data
, FALSE
);
37 /* Always return FALSE because its not interactive */
38 static gboolean
run_func_toggle(ObActionsData
*data
, gpointer options
)
41 actions_client_move(data
, TRUE
);
42 client_shade(data
->client
, !data
->client
->shaded
);
43 actions_client_move(data
, FALSE
);
This page took 0.040758 seconds and 3 git commands to generate.