altTab: Use more appropriate fallback icon

'icon-missing' is not an actual icon name. It somewhat works
because an invalid icon name will fallback to the correct
'image-missing', however for apps the generic app icon is
a better fallback.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3248>
This commit is contained in:
Florian Müllner 2024-03-19 14:01:13 +01:00 committed by Marge Bot
parent 4acb547a8f
commit 817ae50692

View File

@ -1050,7 +1050,7 @@ class WindowIcon extends St.BoxLayout {
_createAppIcon(app, size) {
let appIcon = app
? app.create_icon_texture(size)
: new St.Icon({icon_name: 'icon-missing', icon_size: size});
: new St.Icon({icon_name: 'application-x-executable', icon_size: size});
appIcon.x_expand = appIcon.y_expand = true;
appIcon.x_align = appIcon.y_align = Clutter.ActorAlign.END;