summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColomban Wendling <[email protected]>2023-07-18 13:04:54 +0200
committerraveit65 <[email protected]>2023-07-19 12:59:43 +0200
commit32bfada2fbbd0f6db140557addab977e4447c598 (patch)
tree2071aee7e154b37ffed59e8a6e99df19d00a5b1e
parent2ee900546fd733374c99b4df3b9206655ab70ae0 (diff)
downloadmarco-32bfada2fbbd0f6db140557addab977e4447c598.tar.bz2
marco-32bfada2fbbd0f6db140557addab977e4447c598.tar.xz
Fix losing title of windows with a 3 or 4 bytes first character
Fixes #757.
-rw-r--r--src/core/window-props.c2
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)
{