summaryrefslogtreecommitdiff
path: root/src/core/window-props.c
diff options
context:
space:
mode:
authorinsaner <[email protected]>2023-01-25 21:35:07 -0500
committerLuke from DC <[email protected]>2023-02-10 20:00:39 +0000
commit319ee4ffaae7bec3289a1a65ce9774982564cd61 (patch)
tree72a944628cdf6bfbb927b65d0e301a54b0fc0e66 /src/core/window-props.c
parentd83cb24a27b1864be035868354a806287dbfaa92 (diff)
downloadmarco-319ee4ffaae7bec3289a1a65ce9774982564cd61.tar.bz2
marco-319ee4ffaae7bec3289a1a65ce9774982564cd61.tar.xz
Show correct window title when owned by superuser. Issue #749
Diffstat (limited to 'src/core/window-props.c')
-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 06df9e66..fd48e732 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)
+ if (!title || g_utf8_strlen (title, 2) < 1)
*target = g_strdup ("");
else if (g_utf8_strlen (title, MAX_TITLE_LENGTH + 1) > MAX_TITLE_LENGTH)
{