mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
Implement action "Lower"
This commit is contained in:
parent
a6896e6978
commit
753aef9d78
2 changed files with 10 additions and 0 deletions
|
|
@ -29,6 +29,9 @@ Actions are used in menus and keyboard/mouse bindings.
|
||||||
*<action name="Raise">*
|
*<action name="Raise">*
|
||||||
Restack the current window above other open windows.
|
Restack the current window above other open windows.
|
||||||
|
|
||||||
|
*<action name="Lower">*
|
||||||
|
Restack the current window below other open windows.
|
||||||
|
|
||||||
*<action name="Iconify">*
|
*<action name="Iconify">*
|
||||||
Iconify (minimize) focused window.
|
Iconify (minimize) focused window.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,7 @@ enum action_type {
|
||||||
ACTION_TYPE_ICONIFY,
|
ACTION_TYPE_ICONIFY,
|
||||||
ACTION_TYPE_MOVE,
|
ACTION_TYPE_MOVE,
|
||||||
ACTION_TYPE_RAISE,
|
ACTION_TYPE_RAISE,
|
||||||
|
ACTION_TYPE_LOWER,
|
||||||
ACTION_TYPE_RESIZE,
|
ACTION_TYPE_RESIZE,
|
||||||
ACTION_TYPE_GO_TO_DESKTOP,
|
ACTION_TYPE_GO_TO_DESKTOP,
|
||||||
ACTION_TYPE_SEND_TO_DESKTOP,
|
ACTION_TYPE_SEND_TO_DESKTOP,
|
||||||
|
|
@ -93,6 +94,7 @@ const char *action_names[] = {
|
||||||
"Iconify",
|
"Iconify",
|
||||||
"Move",
|
"Move",
|
||||||
"Raise",
|
"Raise",
|
||||||
|
"Lower",
|
||||||
"Resize",
|
"Resize",
|
||||||
"GoToDesktop",
|
"GoToDesktop",
|
||||||
"SendToDesktop",
|
"SendToDesktop",
|
||||||
|
|
@ -440,6 +442,11 @@ actions_run(struct view *activator, struct server *server,
|
||||||
desktop_move_to_front(view);
|
desktop_move_to_front(view);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case ACTION_TYPE_LOWER:
|
||||||
|
if (view) {
|
||||||
|
desktop_move_to_back(view);
|
||||||
|
}
|
||||||
|
break;
|
||||||
case ACTION_TYPE_RESIZE:
|
case ACTION_TYPE_RESIZE:
|
||||||
if (view) {
|
if (view) {
|
||||||
interactive_begin(view, LAB_INPUT_STATE_RESIZE,
|
interactive_begin(view, LAB_INPUT_STATE_RESIZE,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue