diff options
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/action.c | 30 | ||||
| -rw-r--r-- | openbox/action.h | 7 |
2 files changed, 37 insertions, 0 deletions
diff --git a/openbox/action.c b/openbox/action.c index eb19426b..d79bf7ae 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -432,6 +432,21 @@ ActionString actionstrings[] = setup_action_resize_keyboard }, { + "toggleshowdesktop", + action_toggle_show_desktop, + NULL + }, + { + "showdesktop", + action_show_desktop, + NULL + }, + { + "unshowdesktop", + action_unshow_desktop, + NULL + }, + { "restart", action_restart, NULL @@ -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); +} diff --git a/openbox/action.h b/openbox/action.h index f7c372a4..5630f8f4 100644 --- a/openbox/action.h +++ b/openbox/action.h @@ -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 |
