summaryrefslogtreecommitdiff
path: root/src/core/keybindings.c
diff options
context:
space:
mode:
authorRobert David <[email protected]>2014-03-10 11:58:07 +0100
committerinfirit <[email protected]>2014-06-24 23:09:21 +0200
commit69b7a0ad9277f21ad761c84ac1bae5455a2f879e (patch)
tree9a244ed257c08437edcf6d637420f98ac6dd3639 /src/core/keybindings.c
parent897defba089400c910a520ca1302ca5573d3f1d7 (diff)
downloadmarco-69b7a0ad9277f21ad761c84ac1bae5455a2f879e.tar.bz2
marco-69b7a0ad9277f21ad761c84ac1bae5455a2f879e.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 8dda13cd..29df5a66 100644
--- a/src/core/keybindings.c
+++ b/src/core/keybindings.c
@@ -2242,6 +2242,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)
{