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:
parent
bef5043135
commit
69f63dc94f
@ -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 });
|
||||||
|
Loading…
Reference in New Issue
Block a user