summaryrefslogtreecommitdiff
path: root/src/workspace.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/workspace.c')
-rw-r--r--src/workspace.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/workspace.c b/src/workspace.c
index 20eb11e..1b65915 100644
--- a/src/workspace.c
+++ b/src/workspace.c
@@ -189,6 +189,12 @@ meta_workspace_activate (MetaWorkspace *workspace)
meta_workspace_queue_calc_showing (old);
meta_workspace_queue_calc_showing (workspace);
+
+ /* in mouse focus modes, this will probably get undone by an EnterNotify,
+ * but that's OK
+ */
+ meta_topic (META_DEBUG_FOCUS, "Focusing top window on new workspace\n");
+ meta_screen_focus_top_window (workspace->screen, NULL);
}
int