mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
workspaces: Add default workspace sub menu
This commit is contained in:
parent
c93d625938
commit
ff69988347
2 changed files with 26 additions and 0 deletions
|
|
@ -17,6 +17,16 @@
|
|||
<item label="AlwaysOnTop">
|
||||
<action name="ToggleAlwaysOnTop" />
|
||||
</item>
|
||||
<menu id="workspaces" label="Workspace">
|
||||
<item label="Move left">
|
||||
<action name="SendToDesktop" to="left" />
|
||||
<action name="GoToDesktop" to="left" />
|
||||
</item>
|
||||
<item label="Move right">
|
||||
<action name="SendToDesktop" to="right" />
|
||||
<action name="GoToDesktop" to="right" />
|
||||
</item>
|
||||
</menu>
|
||||
<item label="Close">
|
||||
<action name="Close" />
|
||||
</item>
|
||||
|
|
|
|||
|
|
@ -489,6 +489,22 @@ menu_init_windowmenu(struct server *server)
|
|||
fill_item("name.action", "ToggleDecorations");
|
||||
current_item = item_create(menu, _("AlwaysOnTop"));
|
||||
fill_item("name.action", "ToggleAlwaysOnTop");
|
||||
|
||||
/* Workspace sub-menu */
|
||||
struct menu *workspace_menu = menu_create(server, "workspaces", "");
|
||||
current_item = item_create(workspace_menu, _("Move left"));
|
||||
fill_item("name.action", "SendToDesktop");
|
||||
fill_item("to.action", "left");
|
||||
fill_item("name.action", "GoToDesktop");
|
||||
fill_item("to.action", "left");
|
||||
current_item = item_create(workspace_menu, _("Move right"));
|
||||
fill_item("name.action", "SendToDesktop");
|
||||
fill_item("to.action", "right");
|
||||
fill_item("name.action", "GoToDesktop");
|
||||
fill_item("to.action", "right");
|
||||
current_item = item_create(menu, _("Workspace"));
|
||||
current_item->submenu = workspace_menu;
|
||||
|
||||
current_item = item_create(menu, _("Close"));
|
||||
fill_item("name.action", "Close");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue