Skip to content

Commit

Permalink
Show correct window title when owned by superuser. Issue #749
Browse files Browse the repository at this point in the history
  • Loading branch information
insaner authored and lukefromdc committed Feb 10, 2023
1 parent d83cb24 commit 319ee4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/window-props.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 319ee4f

Please sign in to comment.