From da35f0b35b46682d3566cb0ffc7ec2136317a1c9 Mon Sep 17 00:00:00 2001 From: Robert David Date: Thu, 22 Jan 2015 22:40:44 +0100 Subject: Possible keybinding to switch to previous workspace. Disabled at default. --- src/core/keybindings.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/core/keybindings.c') 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) { -- cgit v1.2.1