mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-16 05:34:00 -04:00
term: ignore window title updates if title is un-changed
This commit is contained in:
parent
de6ab6dca0
commit
2fbc336eb9
2 changed files with 5 additions and 0 deletions
|
|
@ -63,6 +63,8 @@
|
||||||
(https://codeberg.org/dnkl/foot/issues/752).
|
(https://codeberg.org/dnkl/foot/issues/752).
|
||||||
* Clipboard occasionally ceasing to work, until window has been
|
* Clipboard occasionally ceasing to work, until window has been
|
||||||
re-focused (https://codeberg.org/dnkl/foot/issues/753).
|
re-focused (https://codeberg.org/dnkl/foot/issues/753).
|
||||||
|
* Don’t propagate window title updates to the Wayland compositor
|
||||||
|
unless the new title is different from the old title.
|
||||||
|
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
|
|
|
||||||
|
|
@ -3041,6 +3041,9 @@ term_set_window_title(struct terminal *term, const char *title)
|
||||||
if (term->conf->locked_title && term->window_title_has_been_set)
|
if (term->conf->locked_title && term->window_title_has_been_set)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (term->window_title != NULL && strcmp(term->window_title, title) == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
free(term->window_title);
|
free(term->window_title);
|
||||||
term->window_title = xstrdup(title);
|
term->window_title = xstrdup(title);
|
||||||
render_refresh_title(term);
|
render_refresh_title(term);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue