]> Dogcows Code - chaz/openbox/commitdiff
togglefullscreen action from Joaquin Aguirrezabalaga
authorMikael Magnusson <mikachu@comhem.se>
Tue, 17 Aug 2004 21:33:55 +0000 (21:33 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Tue, 17 Aug 2004 21:33:55 +0000 (21:33 +0000)
data/rc.xsd
openbox/action.c
openbox/action.h

index da1b7a2d2d7e089552706099e65ec4b59292b2e0..9cb585a7a62046d19cbc3e49da13725f02ecb8a9 100644 (file)
             <xs:enumeration value="ToggleAlwaysOnBottom"/>
             <xs:enumeration value="ToggleAlwaysOnTop"/>
             <xs:enumeration value="ToggleDecorations"/>
             <xs:enumeration value="ToggleAlwaysOnBottom"/>
             <xs:enumeration value="ToggleAlwaysOnTop"/>
             <xs:enumeration value="ToggleDecorations"/>
+            <xs:enumeration value="ToggleFullscreen"/>
             <xs:enumeration value="ToggleMaximizeFull"/>
             <xs:enumeration value="ToggleMaximizeHorz"/>
             <xs:enumeration value="ToggleMaximizeVert"/>
             <xs:enumeration value="ToggleMaximizeFull"/>
             <xs:enumeration value="ToggleMaximizeHorz"/>
             <xs:enumeration value="ToggleMaximizeVert"/>
index 921e7eec25f3b7f1cca116a7fdcd6ea8f2b2068f..bd8ae9e40fd9192706c51ec9f8347274088cea19 100644 (file)
@@ -591,6 +591,11 @@ ActionString actionstrings[] =
         action_toggle_maximize_vert,
         setup_client_action
     },
         action_toggle_maximize_vert,
         setup_client_action
     },
+    {
+        "togglefullscreen",
+        action_toggle_fullscreen,
+        setup_client_action
+    },
     {
         "sendtodesktop",
         action_send_to_desktop,
     {
         "sendtodesktop",
         action_send_to_desktop,
@@ -1234,6 +1239,14 @@ void action_toggle_maximize_vert(union ActionData *data)
     client_action_end(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;
 void action_send_to_desktop(union ActionData *data)
 {
     ObClient *c = data->sendto.any.c;
index 630bf41a13e19a05ec61a482ea034af9a4a380e6..f940f7eacd5e7b688f169344e56a582074689867 100644 (file)
@@ -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);
 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 */
 /* SendToDesktop */
 void action_send_to_desktop(union ActionData *data);
 /* SendToDesktopDirection */
This page took 0.031214 seconds and 4 git commands to generate.