summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2014-06-03 14:52:18 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2014-06-03 14:52:18 +0200
commitf9df83802d13e02bcfc952725d6aa69767e99977 (patch)
tree37edf7bde519f34b0c0ab3ae13f5447f1ae8b941
parente51eb723fc7a7dbd7d79bbfd74f72e016d05aa66 (diff)
ui: Adapt to display.get_tab_list API change
-rw-r--r--js/ui/altTab.js5
-rw-r--r--js/ui/ctrlAltTab.js2
2 files changed, 3 insertions, 4 deletions
diff --git a/js/ui/altTab.js b/js/ui/altTab.js
index 78773d93..fc7a558c 100644
--- a/js/ui/altTab.js
+++ b/js/ui/altTab.js
@@ -372,7 +372,7 @@ const WindowSwitcherPopup = new Lang.Class({
_getWindowList: function() {
let workspace = this._settings.get_boolean('current-workspace-only') ? global.screen.get_active_workspace() : null;
- return global.display.get_tab_list(Meta.TabList.NORMAL, global.screen, workspace);
+ return global.display.get_tab_list(Meta.TabList.NORMAL, workspace);
},
_createSwitcher: function() {
@@ -459,8 +459,7 @@ const AppSwitcher = new Lang.Class({
let settings = new Gio.Settings({ schema: 'org.gnome.shell.app-switcher' });
let workspace = settings.get_boolean('current-workspace-only') ? global.screen.get_active_workspace()
: null;
- let allWindows = global.display.get_tab_list(Meta.TabList.NORMAL,
- global.screen, workspace);
+ let allWindows = global.display.get_tab_list(Meta.TabList.NORMAL, workspace);
// Construct the AppIcons, add to the popup
for (let i = 0; i < apps.length; i++) {
diff --git a/js/ui/ctrlAltTab.js b/js/ui/ctrlAltTab.js
index 19911970..570c73da 100644
--- a/js/ui/ctrlAltTab.js
+++ b/js/ui/ctrlAltTab.js
@@ -87,7 +87,7 @@ const CtrlAltTabManager = new Lang.Class({
if (Main.sessionMode.hasWindows && !Main.overview.visible) {
let screen = global.screen;
let display = screen.get_display();
- let windows = display.get_tab_list(Meta.TabList.DOCKS, screen, screen.get_active_workspace ());
+ let windows = display.get_tab_list(Meta.TabList.DOCKS, screen.get_active_workspace ());
let windowTracker = Shell.WindowTracker.get_default();
let textureCache = St.TextureCache.get_default();
for (let i = 0; i < windows.length; i++) {