summaryrefslogtreecommitdiff
path: root/src/core/core.c
diff options
context:
space:
mode:
authorosch <oliver at luced de>2019-04-12 23:48:52 +0200
committerlukefromdc <[email protected]>2019-04-23 18:35:39 +0000
commit54d6dd4cd27c97c3560c3ff2eb66fcfbbe5a51c0 (patch)
tree7ea59fcfd5b6b26c409904d34083d428c2f447a4 /src/core/core.c
parent5e2f54dbf2417c3b5f8b1614010565a0a500382a (diff)
downloadmarco-54d6dd4cd27c97c3560c3ff2eb66fcfbbe5a51c0.tar.bz2
marco-54d6dd4cd27c97c3560c3ff2eb66fcfbbe5a51c0.tar.xz
reload icons if icon size preference changed
Diffstat (limited to 'src/core/core.c')
-rw-r--r--src/core/core.c22
1 files changed, 22 insertions, 0 deletions
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);
+}
+