mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-14 08:21:27 -04:00
render: don’t create/destroy the title update timer each time
Create it once when instantiating the terminal. Add a boolean to track whether the timer is running or not.
This commit is contained in:
parent
535c82d628
commit
07b455e882
3 changed files with 45 additions and 37 deletions
|
|
@ -490,6 +490,7 @@ struct terminal {
|
|||
|
||||
struct {
|
||||
struct timeval last_update;
|
||||
bool is_armed;
|
||||
int timer_fd;
|
||||
} title;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue