summaryrefslogtreecommitdiff
path: root/src/core/screen.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/screen.c
parentae98b909e347ae7dadb0a57a22dbca3cf2231f33 (diff)
downloadmarco-5e2f54dbf2417c3b5f8b1614010565a0a500382a.tar.bz2
marco-5e2f54dbf2417c3b5f8b1614010565a0a500382a.tar.xz
make icon size configurable
Diffstat (limited to 'src/core/screen.c')
-rw-r--r--src/core/screen.c10
1 files changed, 6 insertions, 4 deletions
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;