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,
proxy: windows[i].get_compositor_private(),
focusCallback: function(timestamp) {
Main.activateWindow(this, timestamp);
}.bind(windows[i]),
focusCallback: timestamp => {
Main.activateWindow(windows[i], timestamp);
},
iconActor: icon,
iconName: iconName,
sortGroup: SortGroup.MIDDLE });