diff options
-rw-r--r-- | src/core/window-props.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/window-props.c b/src/core/window-props.c index fd48e732..e1275817 100644 --- a/src/core/window-props.c +++ b/src/core/window-props.c @@ -489,7 +489,7 @@ set_title_text (MetaWindow *window, g_free (*target); - if (!title || g_utf8_strlen (title, 2) < 1) + if (!title || !*title) *target = g_strdup (""); else if (g_utf8_strlen (title, MAX_TITLE_LENGTH + 1) > MAX_TITLE_LENGTH) { |