From 04e9f33437d33468f05010b87f851d4f88a5ac64 Mon Sep 17 00:00:00 2001 From: David Maciejak Date: Fri, 10 Feb 2023 19:04:34 +0800 Subject: [PATCH] WINGs: Fix incorrect findCloseColor exact flag value In case the color cannot be allocated exactly by createRGBAColor function, the findCloseColor function is used as a failover function to find a color close to the requested color. By definition that color is then not exact. createRGBAColor exact flag should be 1 while findCloseColor exact flag should be 0 --- WINGs/wcolor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WINGs/wcolor.c b/WINGs/wcolor.c index a02c1820..9d276da3 100644 --- a/WINGs/wcolor.c +++ b/WINGs/wcolor.c @@ -51,7 +51,7 @@ static WMColor *findCloseColor(WMScreen * scr, unsigned short red, unsigned shor color->refCount = 1; color->color = xcolor; color->alpha = alpha; - color->flags.exact = 1; + color->flags.exact = 0; color->gc = NULL; return color;