summaryrefslogtreecommitdiff
path: root/src/workspace.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/workspace.c')
-rw-r--r--src/workspace.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/workspace.c b/src/workspace.c
index f6eacc92..40e445da 100644
--- a/src/workspace.c
+++ b/src/workspace.c
@@ -216,8 +216,11 @@ meta_workspace_activate (MetaWorkspace *workspace)
meta_workspace_queue_calc_showing (old);
meta_workspace_queue_calc_showing (workspace);
- meta_topic (META_DEBUG_FOCUS, "Focusing default window on new workspace\n");
- meta_screen_focus_default_window (workspace->screen, NULL);
+ /* 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