about summary refs log tree commit diff
path: root/window.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2023-02-05 14:35:40 -0500
committerJune McEnroe <june@causal.agency>2023-02-05 19:28:36 -0500
commit06be4c5956248021192e549d05aea066b5d2f13b (patch)
tree43accf040a26199bf42fb1fcbd48ea91df41a8d8 /window.c
parentFlatten cache structs (diff)
downloadcatgirl-06be4c5956248021192e549d05aea066b5d2f13b.tar.gz
catgirl-06be4c5956248021192e549d05aea066b5d2f13b.zip
Fix what went wrong, part 1
Diffstat (limited to '')
-rw-r--r--window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/window.c b/window.c
index 0c675e9..e64095a 100644
--- a/window.c
+++ b/window.c
@@ -93,7 +93,7 @@ static struct Window *windowRemove(uint num) {
 }
 
 static void windowFree(struct Window *window) {
-	cacheRemove(None, idNames[window->id]);
+	completeRemove(None, idNames[window->id]);
 	bufferFree(window->buffer);
 	free(window);
 }
@@ -118,7 +118,7 @@ uint windowFor(uint id) {
 		window->thresh = windowThreshold;
 	}
 	window->buffer = bufferAlloc();
-	cacheInsert(false, None, idNames[id])->color = idColors[id];
+	completePush(None, idNames[id]); // color = idColors[id]
 
 	return windowPush(window);
 }
@@ -477,7 +477,7 @@ void windowClose(uint num) {
 	if (num >= count) return;
 	if (windows[num]->id == Network) return;
 	struct Window *window = windowRemove(num);
-	cacheClear(window->id);
+	completeRemove(window->id, NULL);
 	windowFree(window);
 	if (swap >= num) swap--;
 	if (show == num) {