summaryrefslogtreecommitdiff
path: root/src/core/workspace.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/workspace.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/workspace.c')
-rw-r--r--src/core/workspace.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/workspace.c b/src/core/workspace.c
index 05ca7c70..a0a8ad1e 100644
--- a/src/core/workspace.c
+++ b/src/core/workspace.c
@@ -385,6 +385,9 @@ meta_workspace_activate_with_focus (MetaWorkspace *workspace,
/* Note that old can be NULL; e.g. when starting up */
old = workspace->screen->active_workspace;
+ /* Save old workspace, to be able to switch back. */
+ workspace->screen->prev_workspace = old;
+
workspace->screen->active_workspace = workspace;
set_active_space_hint (workspace->screen);