diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-03-09 16:57:40 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-03-09 16:57:55 +0100 |
| commit | 4eb5816918569182f968c1b8ed2fa6a055a2128a (patch) | |
| tree | 2d2b64fb49a9dd85eeaba12a5548052b827156ba /libdecor/src/plugins | |
| parent | 6d3071b859b6ddcec9beb6ef153c1c51491ab677 (diff) | |
Fix changing decorated window title.
Diffstat (limited to 'libdecor/src/plugins')
| -rw-r--r-- | libdecor/src/plugins/gtk/libdecor-gtk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdecor/src/plugins/gtk/libdecor-gtk.c b/libdecor/src/plugins/gtk/libdecor-gtk.c index c3f4ca710..b1d0500a3 100644 --- a/libdecor/src/plugins/gtk/libdecor-gtk.c +++ b/libdecor/src/plugins/gtk/libdecor-gtk.c @@ -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 |
