From bb56685063532f732f4fbdba1d890931dad3d891 Mon Sep 17 00:00:00 2001 From: Moritz Biering Date: Thu, 6 May 2021 14:32:57 +0200 Subject: Use the additional alpha-value as offset to support a changing alpha properly --- config.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'config.h') 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 }, }; /* -- cgit v1.2.3