diff options
author | No_name <[email protected]> | 2015-09-25 11:33:36 +0200 |
---|---|---|
committer | No_name <[email protected]> | 2015-09-25 11:33:36 +0200 |
commit | 2380955609c8bb383226951660d6fd1944481e9b (patch) | |
tree | 15a6f1e8249e92872bcf5fe2c41a8c0d08f609bc /src/core/keybindings.c | |
parent | 5a5236d833230939333fb9a66422e88e40f0f54d (diff) | |
parent | da35f0b35b46682d3566cb0ffc7ec2136317a1c9 (diff) | |
download | marco-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.c | 8 |
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) { |