From 4801d3a305e80b449f041d469432780d7b0cc179 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 6 Feb 2024 13:41:09 +0100 Subject: term: drop term->render.title.is_armed This boolean isn't needed. The idea was probably to not re-program the timer unnecessarily, or even to prevent it from being moved forward in time indefinitely. However, the logic has (probably) gone through some changes, that now makes it irrelevant. The timer isn't moved forward indefinitely; it is always set to 8ms from the last title update. The closer we get to that point in time, the smaller the timeout we set. Now, is_armed _did_ prevent the timer from being re-programmed. But that tiny performance tweak isn't really necessary, as the title should, in normal cases, not be set that often anyway. --- terminal.h | 1 - 1 file changed, 1 deletion(-) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index 9e003502..7b743c09 100644 --- a/terminal.h +++ b/terminal.h @@ -603,7 +603,6 @@ struct terminal { struct { struct timespec last_update; - bool is_armed; int timer_fd; } title; -- cgit v1.3