]> Dogcows Code - chaz/openbox/blob - openbox/actions/maximize.c
add maximize action
[chaz/openbox] / openbox / actions / maximize.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_maximize_startup()
7 {
8 actions_register("Maximize",
9 NULL, NULL,
10 run_func,
11 NULL, NULL);
12 }
13
14 /* Always return FALSE because its not interactive */
15 static gboolean run_func(ObActionsData *data, gpointer options)
16 {
17 if (data->client) {
18 actions_client_move(data, TRUE);
19 client_maximize(data->client,
20 !(data->client->max_horz || data->client->max_vert),
21 0);
22 actions_client_move(data, FALSE);
23 }
24
25 return FALSE;
26 }
This page took 0.038312 seconds and 5 git commands to generate.