about summary refs log tree commit diff
path: root/window.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-07-30 18:47:26 -0400
committerJune McEnroe <june@causal.agency>2022-07-30 18:47:26 -0400
commit14a6486b9b2b9522982cde12c05b20931fe34999 (patch)
tree672349f06f9e998e6859a937230cc32787af2d9f /window.c
parent"Rename" complete to cache, refactor interfaces (diff)
downloadcatgirl-14a6486b9b2b9522982cde12c05b20931fe34999.tar.gz
catgirl-14a6486b9b2b9522982cde12c05b20931fe34999.zip
Switch to cache interfaces
Diffstat (limited to '')
-rw-r--r--window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/window.c b/window.c
index ee0911f..72a3571 100644
--- a/window.c
+++ b/window.c
@@ -93,7 +93,7 @@ static struct Window *windowRemove(uint num) {
 }
 
 static void windowFree(struct Window *window) {
-	completeRemove(None, idNames[window->id]);
+	cacheRemove(None, idNames[window->id]);
 	bufferFree(window->buffer);
 	free(window);
 }
@@ -118,7 +118,7 @@ uint windowFor(uint id) {
 		window->thresh = windowThreshold;
 	}
 	window->buffer = bufferAlloc();
-	completeAdd(None, idNames[id], idColors[id]);
+	cacheInsertColor(false, None, idNames[id], 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);
-	completeClear(window->id);
+	cacheClear(window->id);
 	windowFree(window);
 	if (swap >= num) swap--;
 	if (show == num) {