Fix changing decorated window title.

This commit is contained in:
ManoloFLTK 2022-03-09 16:57:40 +01:00
parent 6d3071b859
commit 4eb5816918

View File

@ -1600,12 +1600,12 @@ libdecor_plugin_gtk_frame_property_changed(struct libdecor_plugin *plugin,
new_title = libdecor_frame_get_title(frame);
#if APPLY_FLTK_CHANGES
if (frame_gtk->title && !streq(frame_gtk->title, new_title)) {
if (!frame_gtk->title || !streq(frame_gtk->title, new_title)) {
#else
if (!streq(frame_gtk->title, new_title))
#endif
redraw_needed = true;
free(frame_gtk->title);
if (frame_gtk->title) free(frame_gtk->title);
if (new_title)
frame_gtk->title = strdup(new_title);
else