]> Dogcows Code - chaz/openbox/commitdiff
action toggledockautohide to toggle if the dock autohides
authorMikael Magnusson <mikachu@comhem.se>
Sat, 27 Mar 2004 15:25:39 +0000 (15:25 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Sat, 27 Mar 2004 15:25:39 +0000 (15:25 +0000)
openbox/action.c
openbox/action.h

index 2251715123aa5ba18aaeb1c0793c225472184a63..81a9ef3e1703f40c80cb95887c10c6f471492da1 100644 (file)
@@ -676,6 +676,11 @@ ActionString actionstrings[] =
         action_moveresize,
         setup_action_resize
     },
+    {
+        "toggledockautohide",
+        action_toggle_dockautohide,
+        NULL
+    },
     {
         "toggleshowdesktop",
         action_toggle_show_desktop,
@@ -1536,6 +1541,12 @@ void action_toggle_layer(union ActionData *data)
     client_action_end(data);
 }
 
+void action_toggle_dockautohide(union ActionData *data)
+{
+    config_dock_hide = !config_dock_hide;
+    dock_configure();
+}
+
 void action_toggle_show_desktop(union ActionData *data)
 {
     screen_show_desktop(!screen_showing_desktop);
index e0dcd7697b52051ed4dd7af682014eeaa536374a..630bf41a13e19a05ec61a482ea034af9a4a380e6 100644 (file)
@@ -306,6 +306,8 @@ void action_send_to_layer(union ActionData *data);
 /* Layer */
 void action_toggle_layer(union ActionData *data);
 /* Any */
+void action_toggle_dockautohide(union ActionData *data);
+/* Any */
 void action_toggle_show_desktop(union ActionData *data);
 /* Any */
 void action_show_desktop(union ActionData *data);
This page took 0.026747 seconds and 4 git commands to generate.