mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-16 08:21:20 -04:00
term: track current window title in terminal struct
This commit is contained in:
parent
326808f94d
commit
97350f6488
4 changed files with 17 additions and 4 deletions
|
|
@ -10,6 +10,7 @@
|
|||
#define LOG_ENABLE_DBG 0
|
||||
#include "log.h"
|
||||
#include "grid.h"
|
||||
#include "render.h"
|
||||
#include "vt.h"
|
||||
|
||||
#define min(x, y) ((x) < (y) ? (x) : (y))
|
||||
|
|
@ -460,3 +461,11 @@ term_mouse_motion(struct terminal *term, int button, int row, int col,
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
term_set_window_title(struct terminal *term, const char *title)
|
||||
{
|
||||
free(term->window_title);
|
||||
term->window_title = strdup(title);
|
||||
render_set_title(term, term->window_title);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue