summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/prefs.c5
-rw-r--r--src/core/window.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/src/core/prefs.c b/src/core/prefs.c
index b9f0362b..df6bed14 100644
--- a/src/core/prefs.c
+++ b/src/core/prefs.c
@@ -1137,7 +1137,10 @@ meta_prefs_get_cursor_size (void)
int
meta_prefs_get_icon_size (void)
{
- return icon_size;
+ GdkWindow *window = gdk_get_default_root_window ();
+ gint scale = gdk_window_get_scale_factor (window);
+
+ return icon_size * scale;
}
int
diff --git a/src/core/window.c b/src/core/window.c
index 56cec45b..1536c62d 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -6115,7 +6115,7 @@ meta_window_update_icon_now (MetaWindow *window)
icon = NULL;
mini_icon = NULL;
-
+
int icon_size = meta_prefs_get_icon_size();
if (meta_read_icons (window->screen,