]> Dogcows Code - chaz/openbox/commitdiff
add actions for showing the desktop
authorDana Jansens <danakj@orodu.net>
Sat, 24 May 2003 09:22:19 +0000 (09:22 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 24 May 2003 09:22:19 +0000 (09:22 +0000)
openbox/action.c
openbox/action.h

index eb19426b7eee06eeee61a73a913763e757e94c15..d79bf7aec0b86bdda0a6df5495471a8624e3b2a9 100644 (file)
@@ -431,6 +431,21 @@ ActionString actionstrings[] =
         action_moveresize,
         setup_action_resize_keyboard
     },
+    {
+        "toggleshowdesktop",
+        action_toggle_show_desktop,
+        NULL
+    },
+    {
+        "showdesktop",
+        action_show_desktop,
+        NULL
+    },
+    {
+        "unshowdesktop",
+        action_unshow_desktop,
+        NULL
+    },
     {
         "restart",
         action_restart,
@@ -1144,3 +1159,18 @@ void action_toggle_layer(union ActionData *data)
             client_set_layer(c, c->above ? 0 : 1);
     }
 }
+
+void action_toggle_show_desktop(union ActionData *data)
+{
+    screen_show_desktop(!screen_showing_desktop);
+}
+
+void action_show_desktop(union ActionData *data)
+{
+    screen_show_desktop(TRUE);
+}
+
+void action_unshow_desktop(union ActionData *data)
+{
+    screen_show_desktop(FALSE);
+}
index f7c372a473fc3f38c5611f0a7bbe9ede0738b55c..5630f8f49e77202d93723c8ee67d43e8a3143fd2 100644 (file)
@@ -218,4 +218,11 @@ void action_movetoedge(union ActionData *data);
 void action_send_to_layer(union ActionData *data);
 /* Layer */
 void action_toggle_layer(union ActionData *data);
+/* Any */
+void action_toggle_show_desktop(union ActionData *data);
+/* Any */
+void action_show_desktop(union ActionData *data);
+/* Any */
+void action_unshow_desktop(union ActionData *data);
+
 #endif
This page took 0.024781 seconds and 4 git commands to generate.