]> Dogcows Code - chaz/openbox/blobdiff - openbox/action.c
togglefullscreen action from Joaquin Aguirrezabalaga
[chaz/openbox] / openbox / action.c
index 921e7eec25f3b7f1cca116a7fdcd6ea8f2b2068f..bd8ae9e40fd9192706c51ec9f8347274088cea19 100644 (file)
@@ -591,6 +591,11 @@ ActionString actionstrings[] =
         action_toggle_maximize_vert,
         setup_client_action
     },
+    {
+        "togglefullscreen",
+        action_toggle_fullscreen,
+        setup_client_action
+    },
     {
         "sendtodesktop",
         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;
This page took 0.022013 seconds and 4 git commands to generate.