From 319ee4ffaae7bec3289a1a65ce9774982564cd61 Mon Sep 17 00:00:00 2001 From: insaner Date: Wed, 25 Jan 2023 21:35:07 -0500 Subject: Show correct window title when owned by superuser. Issue #749 --- src/core/window-props.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.1