summaryrefslogtreecommitdiff
path: root/src/core/window.c
diff options
context:
space:
mode:
authorosch <oliver at luced de>2019-04-12 21:22:59 +0200
committerlukefromdc <[email protected]>2019-04-23 18:35:39 +0000
commit5e2f54dbf2417c3b5f8b1614010565a0a500382a (patch)
tree691d98cc1bfcb0e0bf4d24ee4713d53eb53eca9c /src/core/window.c
parentae98b909e347ae7dadb0a57a22dbca3cf2231f33 (diff)
downloadmarco-5e2f54dbf2417c3b5f8b1614010565a0a500382a.tar.bz2
marco-5e2f54dbf2417c3b5f8b1614010565a0a500382a.tar.xz
make icon size configurable
Diffstat (limited to 'src/core/window.c')
-rw-r--r--src/core/window.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/window.c b/src/core/window.c
index fce395b9..0a2582e9 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -6042,6 +6042,8 @@ 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,
window->xwindow,
@@ -6049,7 +6051,8 @@ meta_window_update_icon_now (MetaWindow *window)
window->wm_hints_pixmap,
window->wm_hints_mask,
&icon,
- META_ICON_WIDTH, META_ICON_HEIGHT,
+ icon_size, /* width */
+ icon_size, /* height */
&mini_icon,
META_MINI_ICON_WIDTH,
META_MINI_ICON_HEIGHT))