From 5e2f54dbf2417c3b5f8b1614010565a0a500382a Mon Sep 17 00:00:00 2001 From: osch Date: Fri, 12 Apr 2019 21:22:59 +0200 Subject: make icon size configurable --- src/core/screen.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/core/screen.c') diff --git a/src/core/screen.c b/src/core/screen.c index e14f8d52..9b084bcf 100644 --- a/src/core/screen.c +++ b/src/core/screen.c @@ -35,6 +35,7 @@ #include "prefs.h" #include "workspace.h" #include "keybindings.h" +#include "prefs.h" #include "stack.h" #include "xprops.h" #include "compositor.h" @@ -118,14 +119,15 @@ set_supported_hint (MetaScreen *screen) static int set_wm_icon_size_hint (MetaScreen *screen) { + int icon_size = meta_prefs_get_icon_size(); #define N_VALS 6 gulong vals[N_VALS]; /* min width, min height, max w, max h, width inc, height inc */ - vals[0] = META_ICON_WIDTH; - vals[1] = META_ICON_HEIGHT; - vals[2] = META_ICON_WIDTH; - vals[3] = META_ICON_HEIGHT; + vals[0] = icon_size; /* width */ + vals[1] = icon_size; /* height */ + vals[2] = icon_size; /* width */ + vals[3] = icon_size; /* height */ vals[4] = 0; vals[5] = 0; -- cgit v1.2.1