diff options
| author | Victor Kareh <[email protected]> | 2023-03-03 13:00:14 -0500 | 
|---|---|---|
| committer | Victor Kareh <[email protected]> | 2025-04-02 20:37:16 +0000 | 
| commit | 34a06a853aedea845b4723989b97b1384e80869d (patch) | |
| tree | 48a861cb8e22ebfb483cf000f67d92e7e2dbc45d /src/core/iconcache.h | |
| parent | 94ff81575062ecdd57a28eb8a3c7bfaaa6b77b03 (diff) | |
| download | marco-34a06a853aedea845b4723989b97b1384e80869d.tar.bz2 marco-34a06a853aedea845b4723989b97b1384e80869d.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, | 
