mirror of
https://github.com/brl/mutter.git
synced 2025-08-04 23:54:40 +00:00
Fix some bugs (reported in #120100) regarding the focus window when using
2004-08-02 Elijah Newren <newren@math.utah.edu> Fix some bugs (reported in #120100) regarding the focus window when using the workspace switcher. * src/display.c (event_callback): When switching workspaces due to a _NET_CURRENT_DESKTOP message, make sure to focus the default window as well. * src/workspace.c (meta_workspace_focus_default_window, meta_workspace_focus_mru_window): Make DOCK or DESKTOP windows have lower priority than others when choosing a window to focus. (For the former function, this means don't focus them at all; for the latter, this means only focus them (via the meta_workspace_focus_top_window call) if no other mru window can be found.)
This commit is contained in:

committed by
Elijah Newren

parent
38d02fff26
commit
cd09a27aa6
@@ -2056,7 +2056,10 @@ event_callback (XEvent *event,
|
||||
space);
|
||||
|
||||
if (workspace)
|
||||
meta_workspace_activate (workspace);
|
||||
{
|
||||
meta_workspace_activate (workspace);
|
||||
meta_workspace_focus_default_window (workspace, NULL);
|
||||
}
|
||||
else
|
||||
meta_verbose ("Don't know about workspace %d\n", space);
|
||||
}
|
||||
|
Reference in New Issue
Block a user