mirror of
https://github.com/elementary/gala.git
synced 2024-12-24 01:36:05 +03:00
Add previous/next workspace to available actions (#1614)
This commit is contained in:
parent
530a66ea2d
commit
f7e8225775
@ -9,7 +9,9 @@
|
||||
<value nick="custom-command" value="5" />
|
||||
<value nick="window-overview" value="6" />
|
||||
<value nick="window-overview-all" value="7" />
|
||||
<value nick="switch-to-workspace-last" value="8" />
|
||||
<value nick="switch-to-workspace-previous" value="8" />
|
||||
<value nick="switch-to-workspace-next" value="9" />
|
||||
<value nick="switch-to-workspace-last" value="10" />
|
||||
</enum>
|
||||
<enum id="GalaWindowOverviewType">
|
||||
<value nick='grid' value='0'/>
|
||||
|
@ -25,6 +25,8 @@ namespace Gala {
|
||||
CUSTOM_COMMAND,
|
||||
WINDOW_OVERVIEW,
|
||||
WINDOW_OVERVIEW_ALL,
|
||||
SWITCH_TO_WORKSPACE_PREVIOUS,
|
||||
SWITCH_TO_WORKSPACE_NEXT,
|
||||
SWITCH_TO_WORKSPACE_LAST,
|
||||
START_MOVE_CURRENT,
|
||||
START_RESIZE_CURRENT,
|
||||
|
@ -879,6 +879,12 @@ namespace Gala {
|
||||
else
|
||||
current.stick ();
|
||||
break;
|
||||
case ActionType.SWITCH_TO_WORKSPACE_PREVIOUS:
|
||||
switch_to_next_workspace (Meta.MotionDirection.LEFT);
|
||||
break;
|
||||
case ActionType.SWITCH_TO_WORKSPACE_NEXT:
|
||||
switch_to_next_workspace (Meta.MotionDirection.RIGHT);
|
||||
break;
|
||||
case ActionType.MOVE_CURRENT_WORKSPACE_LEFT:
|
||||
move_window (current, Meta.MotionDirection.LEFT);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user