apply newterm patch

This commit is contained in:
2023-03-19 12:10:05 +01:00
parent 033298508e
commit 3240bec57c
4 changed files with 45 additions and 3 deletions

2
x.c
View File

@@ -834,7 +834,7 @@ xloadcolor(int i, const char *name, Color *ncolor)
void
xloadalpha(void)
{
float const usedAlpha = focused ? alpha : alphaUnfocus;
float const usedAlpha = alpha;
if (opt_alpha) alpha = strtof(opt_alpha, NULL);
dc.col[defaultbg].color.alpha = (unsigned short)(0xffff * usedAlpha);
dc.col[defaultbg].pixel &= 0x00FFFFFF;