summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
Diffstat (limited to 'openbox')
-rw-r--r--openbox/action.c13
-rw-r--r--openbox/action.h2
2 files changed, 15 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;
diff --git a/openbox/action.h b/openbox/action.h
index 630bf41a..f940f7ea 100644
--- a/openbox/action.h
+++ b/openbox/action.h
@@ -271,6 +271,8 @@ void action_maximize_vert(union ActionData *data);
void action_unmaximize_vert(union ActionData *data);
/* ClientAction */
void action_toggle_maximize_vert(union ActionData *data);
+/* ClientAction */
+void action_toggle_fullscreen(union ActionData *data);
/* SendToDesktop */
void action_send_to_desktop(union ActionData *data);
/* SendToDesktopDirection */