diff options
author | Victor Kareh <[email protected]> | 2023-03-03 13:00:14 -0500 |
---|---|---|
committer | lukefromdc <[email protected]> | 2024-06-18 17:04:23 -0400 |
commit | cb83a91ed03c9e5ab2a1d8b932ffac3ba49e9fbb (patch) | |
tree | f5382877cd3acfec00676e9a7bd35b41eb51ed5e /src/core/iconcache.h | |
parent | b7bf18ee00c1eb780f2f9c3732bfe07eefb726a8 (diff) | |
download | marco-cb83a91ed03c9e5ab2a1d8b932ffac3ba49e9fbb.tar.bz2 marco-cb83a91ed03c9e5ab2a1d8b932ffac3ba49e9fbb.tar.xz |
iconcache: Add GDesktopAppInfo lookup as an icon caching strategy
Looking up GDesktopAppInfo from the GTK Application ID we can get a much
better match for the icon and load it at the appropriate scale. This
results in matching icons to straneous windows and better looking icons
overall.
Diffstat (limited to 'src/core/iconcache.h')
-rw-r--r-- | src/core/iconcache.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/iconcache.h b/src/core/iconcache.h index 7e9a1f6d..9aee499b 100644 --- a/src/core/iconcache.h +++ b/src/core/iconcache.h @@ -38,7 +38,8 @@ typedef enum USING_FALLBACK_ICON, USING_KWM_WIN_ICON, USING_WM_HINTS, - USING_NET_WM_ICON + USING_NET_WM_ICON, + USING_G_DESKTOP_APP } IconOrigin; struct _MetaIconCache @@ -51,6 +52,7 @@ struct _MetaIconCache guint wm_hints_dirty : 1; guint kwm_win_icon_dirty : 1; guint net_wm_icon_dirty : 1; + guint g_desktop_app_icon_dirty : 1; guint wm_hints_dirty_forced : 1; guint kwm_win_icon_dirty_forced : 1; @@ -67,7 +69,7 @@ gboolean meta_icon_cache_get_icon_invalidated (MetaIconCache *icon_cache); gboolean meta_read_icons (MetaScreen *screen, Window xwindow, - char *res_name, + char *app_id, MetaIconCache *icon_cache, Pixmap wm_hints_pixmap, Pixmap wm_hints_mask, |