From 75e691a2a563b488bef8010315fcfb4296b5cccf Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 24 May 2003 09:22:19 +0000 Subject: add actions for showing the desktop --- openbox/action.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'openbox/action.c') diff --git a/openbox/action.c b/openbox/action.c index eb19426b..d79bf7ae 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -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); +} -- cgit v1.2.3