add actions for showing the desktop

This commit is contained in:
Dana Jansens 2003-05-24 09:22:19 +00:00
parent e483257007
commit 75e691a2a5
2 changed files with 37 additions and 0 deletions

View file

@ -431,6 +431,21 @@ ActionString actionstrings[] =
action_moveresize, action_moveresize,
setup_action_resize_keyboard setup_action_resize_keyboard
}, },
{
"toggleshowdesktop",
action_toggle_show_desktop,
NULL
},
{
"showdesktop",
action_show_desktop,
NULL
},
{
"unshowdesktop",
action_unshow_desktop,
NULL
},
{ {
"restart", "restart",
action_restart, action_restart,
@ -1144,3 +1159,18 @@ void action_toggle_layer(union ActionData *data)
client_set_layer(c, c->above ? 0 : 1); 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);
}

View file

@ -218,4 +218,11 @@ void action_movetoedge(union ActionData *data);
void action_send_to_layer(union ActionData *data); void action_send_to_layer(union ActionData *data);
/* Layer */ /* Layer */
void action_toggle_layer(union ActionData *data); 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 #endif