Bug 572384 - can't select windows that are on all workspaces in the overlay
Workspace._onCloneSelected doesn't need to ask the window which workspace it's on, it can just use its own workspaceNum field.
This commit is contained in:
parent
7b2d333b2e
commit
0eb4873ba0
@ -709,10 +709,9 @@ Workspace.prototype = {
|
||||
_onCloneSelected : function (clone, time) {
|
||||
let global = Shell.Global.get();
|
||||
let activeWorkspace = global.screen.get_active_workspace_index();
|
||||
let windowWorkspace = clone.realWindow.get_workspace();
|
||||
|
||||
if (windowWorkspace != activeWorkspace) {
|
||||
let workspace = global.screen.get_workspace_by_index(windowWorkspace);
|
||||
if (this.workspaceNum != activeWorkspace) {
|
||||
let workspace = global.screen.get_workspace_by_index(this.workspaceNum);
|
||||
workspace.activate_with_focus(clone.metaWindow, time);
|
||||
} else
|
||||
clone.metaWindow.activate(time);
|
||||
|
Loading…
Reference in New Issue
Block a user