mirror of
https://github.com/brl/mutter.git
synced 2025-08-05 08:04:50 +00:00
activating the current workspace should be a no-op. This prevents a race
2004-08-07 Elijah Newren <newren@math.utah.edu> * src/display.c (event_callback): activating the current workspace should be a no-op. This prevents a race condition in focus window choice when activating a window via the taskbar. Fix for #149589.
This commit is contained in:

committed by
Elijah Newren

parent
bd73853f72
commit
118a1fb76a
@@ -2057,8 +2057,13 @@ event_callback (XEvent *event,
|
||||
|
||||
if (workspace)
|
||||
{
|
||||
meta_workspace_activate (workspace);
|
||||
meta_workspace_focus_default_window (workspace, NULL);
|
||||
if (workspace != screen->active_workspace)
|
||||
{
|
||||
meta_workspace_activate (workspace);
|
||||
meta_workspace_focus_default_window (workspace, NULL);
|
||||
}
|
||||
else
|
||||
meta_verbose ("Workspace %d already active.\n", space);
|
||||
}
|
||||
else
|
||||
meta_verbose ("Don't know about workspace %d\n", space);
|
||||
|
Reference in New Issue
Block a user