mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
ssd/ssd_titlebar.c: Only store title state if title has been changed
This commit is contained in:
parent
c033667716
commit
7d98bc7aa2
1 changed files with 5 additions and 3 deletions
|
|
@ -255,10 +255,12 @@ ssd_update_title(struct view *view)
|
||||||
dstate->truncated = rect->width <= dstate->width;
|
dstate->truncated = rect->width <= dstate->width;
|
||||||
} FOR_EACH_END
|
} FOR_EACH_END
|
||||||
|
|
||||||
|
if (!title_unchanged) {
|
||||||
if (state->text) {
|
if (state->text) {
|
||||||
free(state->text);
|
free(state->text);
|
||||||
}
|
}
|
||||||
state->text = strdup(title);
|
state->text = strdup(title);
|
||||||
|
}
|
||||||
ssd_update_title_positions(view);
|
ssd_update_title_positions(view);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue