Use the additional alpha-value as offset to support a changing alpha properly
This commit is contained in:
5
config.h
5
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 },
|
||||
};
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user