summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorMoritz Biering <moritzbiering.mb@gmail.com>2021-05-06 14:32:57 +0200
committerMoritz Biering <moritzbiering.mb@gmail.com>2021-05-06 14:41:36 +0200
commitbb56685063532f732f4fbdba1d890931dad3d891 (patch)
tree8c9b5b12df5d8c57530c2945761dff0d9003c958 /config.h
parent69925ee23b8b1590f65e1f71f2d9ea5156629868 (diff)
Use the additional alpha-value as offset to support a changing alpha properly
Diffstat (limited to 'config.h')
-rw-r--r--config.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/config.h b/config.h
index 3adf598..d6eeade 100644
--- a/config.h
+++ b/config.h
@@ -108,7 +108,8 @@ unsigned int tabspaces = 8;
/* bg opacity */
float alpha = 0.8;
-float alphaUnfocus = 0.8;
+float alphaOffset = 0.0;
+float alphaUnfocus;
/* Terminal colors (16 first used in escape sequence) */
static const char *colorname[] = {
@@ -219,7 +220,7 @@ ResourcePref resources[] = {
{ "cwscale", FLOAT, &cwscale },
{ "chscale", FLOAT, &chscale },
{ "alpha", FLOAT, &alpha },
- { "alphaUnfocus", FLOAT, &alphaUnfocus },
+ { "alphaOffset", FLOAT, &alphaOffset },
};
/*