summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColomban Wendling <[email protected]>2023-07-18 13:04:54 +0200
committerColomban Wendling <[email protected]>2023-10-24 10:57:17 +0200
commita938884530839152c9854dd0d8248b36c3c2e3fd (patch)
tree3a2ecd3df1ade560b3368b7918113a4522862de1
parentefc984bab666bbb66e5ed995be4e37e18cf07d4c (diff)
downloadmarco-a938884530839152c9854dd0d8248b36c3c2e3fd.tar.bz2
marco-a938884530839152c9854dd0d8248b36c3c2e3fd.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 3a01f6f6..b987a689 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)
{