mirror of
https://github.com/labwc/labwc.git
synced 2026-04-10 08:21:07 -04:00
ToggleShowDesktop: add action
This commit is contained in:
parent
28e52e079c
commit
1b9e63b1e8
2 changed files with 8 additions and 1 deletions
|
|
@ -83,6 +83,9 @@ Actions are used in menus and keyboard/mouse bindings.
|
|||
Send active window to workspace.
|
||||
Supported values are the same as for GoToDesktop.
|
||||
|
||||
*<action name="ToggleShowDesktop">*
|
||||
Hide / unhide all windows
|
||||
|
||||
*<action name="None">*
|
||||
If used as the only action for a binding: clear an earlier defined binding.
|
||||
|
||||
|
|
|
|||
|
|
@ -59,7 +59,8 @@ enum action_type {
|
|||
ACTION_TYPE_RESIZE,
|
||||
ACTION_TYPE_GO_TO_DESKTOP,
|
||||
ACTION_TYPE_SEND_TO_DESKTOP,
|
||||
ACTION_TYPE_SNAP_TO_REGION
|
||||
ACTION_TYPE_SNAP_TO_REGION,
|
||||
ACTION_TYPE_TOGGLE_SHOW_DESKTOP,
|
||||
};
|
||||
|
||||
const char *action_names[] = {
|
||||
|
|
@ -88,6 +89,7 @@ const char *action_names[] = {
|
|||
"GoToDesktop",
|
||||
"SendToDesktop",
|
||||
"SnapToRegion",
|
||||
"ToggleShowDesktop",
|
||||
NULL
|
||||
};
|
||||
|
||||
|
|
@ -445,6 +447,8 @@ actions_run(struct view *activator, struct server *server,
|
|||
wlr_log(WLR_ERROR, "Invalid SnapToRegion id: '%s'", region_name);
|
||||
}
|
||||
break;
|
||||
case ACTION_TYPE_TOGGLE_SHOW_DESKTOP:
|
||||
desktop_toggle(server);
|
||||
case ACTION_TYPE_NONE:
|
||||
break;
|
||||
case ACTION_TYPE_INVALID:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue