diff options
Diffstat (limited to 'openbox/action.c')
| -rw-r--r-- | openbox/action.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/openbox/action.c b/openbox/action.c index 921e7eec..bd8ae9e4 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -592,6 +592,11 @@ ActionString actionstrings[] = setup_client_action }, { + "togglefullscreen", + action_toggle_fullscreen, + setup_client_action + }, + { "sendtodesktop", action_send_to_desktop, setup_action_send_to_desktop @@ -1234,6 +1239,14 @@ void action_toggle_maximize_vert(union ActionData *data) client_action_end(data); } +void action_toggle_fullscreen(union ActionData *data) +{ + client_action_start(data); + client_fullscreen(data->client.any.c, + !(data->client.any.c->fullscreen), TRUE); + client_action_end(data); +} + void action_send_to_desktop(union ActionData *data) { ObClient *c = data->sendto.any.c; |
