about summary refs log tree commit diff
path: root/window.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-07-31 16:28:08 -0400
committerJune McEnroe <june@causal.agency>2022-07-31 18:17:08 -0400
commit93e841b29ea567f8ddc31ce7f104dce5396a71ba (patch)
tree9d844670e8e88af199410f66c7c2e90a91233bcb /window.c
parentOnly set cache color if not Default (diff)
downloadcatgirl-93e841b29ea567f8ddc31ce7f104dce5396a71ba.tar.gz
catgirl-93e841b29ea567f8ddc31ce7f104dce5396a71ba.zip
Move cache color to an Entry struct
So that more values can be added sensibly.
Diffstat (limited to '')
-rw-r--r--window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/window.c b/window.c
index 72a3571..0c675e9 100644
--- a/window.c
+++ b/window.c
@@ -118,7 +118,7 @@ uint windowFor(uint id) {
 		window->thresh = windowThreshold;
 	}
 	window->buffer = bufferAlloc();
-	cacheInsertColor(false, None, idNames[id], idColors[id]);
+	cacheInsert(false, None, idNames[id])->color = idColors[id];
 
 	return windowPush(window);
 }