mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
x11/window-props: Do not convert WM_NAME
The WM_NAME property is of type TEXT_PROPERTY, which is supposed to be returned as UTF-8. Commit840378ae68
broke that assumption, resulting in crashes with non-UTF8 locales; however the "fix" of converting from LATIN1 to UTF8 is wrong as well, as the conversion will spit out garbage when the input encoding isn't actually LATIN1. Now that the original issue in text_property_to_utf8() has been fixed, we can simply revert the relevant bits of commitd62491f46e
. https://gitlab.gnome.org/GNOME/mutter/merge_requests/227
This commit is contained in:
parent
e24947a460
commit
62775d1913
@ -651,10 +651,7 @@ reload_wm_name (MetaWindow *window,
|
|||||||
|
|
||||||
if (value->type != META_PROP_VALUE_INVALID)
|
if (value->type != META_PROP_VALUE_INVALID)
|
||||||
{
|
{
|
||||||
g_autofree gchar *title = g_convert (value->v.str, -1,
|
set_window_title (window, value->v.str);
|
||||||
"UTF-8", "LATIN1",
|
|
||||||
NULL, NULL, NULL);
|
|
||||||
set_window_title (window, title);
|
|
||||||
|
|
||||||
meta_verbose ("Using WM_NAME for new title of %s: \"%s\"\n",
|
meta_verbose ("Using WM_NAME for new title of %s: \"%s\"\n",
|
||||||
window->desc, window->title);
|
window->desc, window->title);
|
||||||
|
Loading…
Reference in New Issue
Block a user