From 797b4dc01895b9936c68aad9f8b4e8b7b24502ab Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Mon, 8 Apr 2024 12:23:57 -0400 Subject: window: Parse _BAMF_DESKTOP_FILE property In systems with bamfdaemon running, windows get this property for finding the dekstop spec file of an application. This can be used to find the defined icon for any application window that reports this attribute and provider much better icon matching. --- src/core/iconcache.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/core/iconcache.c') diff --git a/src/core/iconcache.c b/src/core/iconcache.c index 32107781..580a521c 100644 --- a/src/core/iconcache.c +++ b/src/core/iconcache.c @@ -702,7 +702,7 @@ scaled_from_pixdata (guchar *pixdata, gboolean meta_read_icons (MetaScreen *screen, Window xwindow, - char *app_id, + char *desktop_id, MetaIconCache *icon_cache, Pixmap wm_hints_pixmap, Pixmap wm_hints_mask, @@ -756,12 +756,12 @@ meta_read_icons (MetaScreen *screen, if (icon_cache->origin <= USING_G_DESKTOP_APP && icon_cache->g_desktop_app_icon_dirty && - app_id != NULL) + desktop_id != NULL) { icon_cache->g_desktop_app_icon_dirty = FALSE; - *iconp = meta_ui_get_window_icon_from_app (screen->ui, app_id); - *mini_iconp = meta_ui_get_mini_icon_from_app (screen->ui, app_id); + *iconp = meta_ui_get_window_icon_from_desktop_id (screen->ui, desktop_id); + *mini_iconp = meta_ui_get_mini_icon_from_desktop_id (screen->ui, desktop_id); if (*iconp && *mini_iconp) { -- cgit v1.2.1