From cb83a91ed03c9e5ab2a1d8b932ffac3ba49e9fbb Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Fri, 3 Mar 2023 13:00:14 -0500 Subject: 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. --- src/include/ui.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/ui.h b/src/include/ui.h index 9d95e37a..f4728e32 100644 --- a/src/include/ui.h +++ b/src/include/ui.h @@ -157,8 +157,8 @@ void meta_ui_pop_delay_exposes (MetaUI *ui); GdkPixbuf* meta_ui_get_default_window_icon (MetaUI *ui); GdkPixbuf* meta_ui_get_default_mini_icon (MetaUI *ui); -GdkPixbuf* meta_ui_get_window_icon_from_name (MetaUI *ui, char *name); -GdkPixbuf* meta_ui_get_mini_icon_from_name (MetaUI *ui, char *name); +GdkPixbuf* meta_ui_get_window_icon_from_app (MetaUI *ui, char *name); +GdkPixbuf* meta_ui_get_mini_icon_from_app (MetaUI *ui, char *name); gboolean meta_ui_window_should_not_cause_focus (Display *xdisplay, Window xwindow); -- cgit v1.2.1