summaryrefslogtreecommitdiff
path: root/src/core/keybindings.c
diff options
context:
space:
mode:
authorRobert David <[email protected]>2015-01-22 22:40:44 +0100
committerRobert David <[email protected]>2015-01-23 15:20:22 +0100
commitda35f0b35b46682d3566cb0ffc7ec2136317a1c9 (patch)
tree0d86a101945a3ad883ee21bf98c22f5847f03089 /src/core/keybindings.c
parent05ac791462644b0d9dd909e995be996fdfa139cc (diff)
downloadmarco-da35f0b35b46682d3566cb0ffc7ec2136317a1c9.tar.bz2
marco-da35f0b35b46682d3566cb0ffc7ec2136317a1c9.tar.xz
Possible keybinding to switch to previous workspace.
Disabled at default.
Diffstat (limited to 'src/core/keybindings.c')
-rw-r--r--src/core/keybindings.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/keybindings.c b/src/core/keybindings.c
index 041d96fc..821d432a 100644
--- a/src/core/keybindings.c
+++ b/src/core/keybindings.c
@@ -2288,6 +2288,14 @@ handle_switch_to_workspace (MetaDisplay *display,
{
gint which = binding->handler->data;
MetaWorkspace *workspace;
+
+ if (which == META_MOTION_PREV)
+ {
+ workspace = screen->prev_workspace;
+ if (workspace)
+ meta_workspace_activate (workspace, event->xkey.time);
+ return;
+ }
if (which < 0)
{