Use the additional alpha-value as offset to support a changing alpha properly

This commit is contained in:
Moritz Biering
2021-05-06 14:32:57 +02:00
parent 69925ee23b
commit bb56685063
3 changed files with 17 additions and 7 deletions

View File

@@ -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 },
};
/*