[Feature request]Window Icon in Workspace Indicator
Hi,
in Gnome 3.36, I was able to hack the Workspace Indicator extension to display window icons instead of the empty thumbnails. The hack was as simple as this change in class WorkspaceThumbnail:
_addWindow(window) {
if (this._windowPreviews.has(window))
return;
let preview = new WindowPreview(window);
preview.connect('clicked', (a, btn) => this.emit('clicked', btn));
// !!!! Hack here !!!!
let app = Shell.WindowTracker.get_default().get_window_app(window);
if (!app)
return;
preview._icon = app.create_icon_texture(24);
preview.actor.add_actor(preview._icon);
// !!!! End of hack !!!!
this._windowPreviews.set(window, preview);
this.child.add_child(preview);
}
This was very useful, particularly when using Workspace Indicator with the Dash to Panel extension (see attached screenshot).
I tried to do the same with Gnome 42 but my little hack doesn't work any more. The app object is null in that case.
It would be nice if such a feature (possibly optional) could be implemented. Or at least, if you could give me some clue to let my hack work again in Gnome 42.