summaryrefslogtreecommitdiff
path: root/src/core/keybindings.c
diff options
context:
space:
mode:
authorNo_name <[email protected]>2015-09-25 11:33:36 +0200
committerNo_name <[email protected]>2015-09-25 11:33:36 +0200
commit2380955609c8bb383226951660d6fd1944481e9b (patch)
tree15a6f1e8249e92872bcf5fe2c41a8c0d08f609bc /src/core/keybindings.c
parent5a5236d833230939333fb9a66422e88e40f0f54d (diff)
parentda35f0b35b46682d3566cb0ffc7ec2136317a1c9 (diff)
downloadmarco-2380955609c8bb383226951660d6fd1944481e9b.tar.bz2
marco-2380955609c8bb383226951660d6fd1944481e9b.tar.xz
Merge pull request #168 from robertek/swith_to_workspace_prev
Possible keybinding to switch to previous workspace.
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 9e602a91..068199b8 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)
{