AppDisplay: fix typo that prevented Ctrl+Enter in search

workspace is not a valid variable, the workspace index should be
fetched from the params object.

https://bugzilla.gnome.org/show_bug.cgi?id=657111
This commit is contained in:
Giovanni Campagna 2011-08-22 22:31:04 +02:00
parent 62048abbf5
commit 72037af241

View File

@ -342,7 +342,7 @@ AppSearchProvider.prototype = {
let openNewWindow = modifiers & Clutter.ModifierType.CONTROL_MASK; let openNewWindow = modifiers & Clutter.ModifierType.CONTROL_MASK;
if (openNewWindow) if (openNewWindow)
app.open_new_window(workspace); app.open_new_window(params.workspace);
else else
app.activate_full(params.workspace, params.timestamp); app.activate_full(params.workspace, params.timestamp);
}, },