ctrlAltTab: Use arrow function for callback

This was left over because we are binding a different `this`, but
it is easy enough to replace.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/805
This commit is contained in:
Florian Müllner 2019-11-11 15:01:00 +01:00 committed by Georges Basile Stavracas Neto
parent bef5043135
commit 69f63dc94f

View File

@ -100,9 +100,9 @@ var CtrlAltTabManager = class CtrlAltTabManager {
items.push({ name: windows[i].title, items.push({ name: windows[i].title,
proxy: windows[i].get_compositor_private(), proxy: windows[i].get_compositor_private(),
focusCallback: function(timestamp) { focusCallback: timestamp => {
Main.activateWindow(this, timestamp); Main.activateWindow(windows[i], timestamp);
}.bind(windows[i]), },
iconActor: icon, iconActor: icon,
iconName: iconName, iconName: iconName,
sortGroup: SortGroup.MIDDLE }); sortGroup: SortGroup.MIDDLE });