From 54d6dd4cd27c97c3560c3ff2eb66fcfbbe5a51c0 Mon Sep 17 00:00:00 2001 From: osch Date: Fri, 12 Apr 2019 23:48:52 +0200 Subject: reload icons if icon size preference changed --- src/core/core.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/core/core.c') diff --git a/src/core/core.c b/src/core/core.c index 535a3820..0e98959f 100644 --- a/src/core/core.c +++ b/src/core/core.c @@ -812,3 +812,25 @@ meta_invalidate_default_icons (void) g_slist_free (windows); } +void +meta_invalidate_all_icons (void) +{ + MetaDisplay *display = meta_get_display (); + GSList *windows; + GSList *l; + + if (display == NULL) + return; /* We can validly be called before the display is opened. */ + + windows = meta_display_list_windows (display); + for (l = windows; l != NULL; l = l->next) + { + MetaWindow *window = (MetaWindow*)l->data; + + meta_icon_cache_invalidate (&(window->icon_cache)); + meta_window_update_icon_now (window); + } + + g_slist_free (windows); +} + -- cgit v1.2.1