diff --git a/AUTHORS b/AUTHORS index 495f296ecebcdd..901f307d53eebb 100644 --- a/AUTHORS +++ b/AUTHORS @@ -118,7 +118,6 @@ Etienne Laurin Evan Peterson Evan Wallace Evangelos Foutras -Evgeniy Dushistov Fabien Tassin Felix H. Dahlke Fernando Jiménez Moreno diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc index 852fa2db18d045..cae42deef89384 100644 --- a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc +++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc @@ -627,22 +627,11 @@ bool DesktopWindowTreeHostX11::SetWindowTitle(const base::string16& title) { PropModeReplace, reinterpret_cast(utf8str.c_str()), utf8str.size()); - XTextProperty xtp; - char *c_utf8_str = const_cast(utf8str.c_str()); - const int err = - Xutf8TextListToTextProperty(xdisplay_, &c_utf8_str, 1, - XCompoundTextStyle, &xtp); - if (err != Success) { - const std::string ascii_str = base::UTF16ToASCII(title); - xtp.encoding = XA_STRING; - xtp.format = 8; - xtp.value = reinterpret_cast - (const_cast(ascii_str.c_str())); - xtp.nitems = ascii_str.size(); - XSetWMName(xdisplay_, xwindow_, &xtp); - } else { - XSetWMName(xdisplay_, xwindow_, &xtp); - } + // TODO(erg): This is technically wrong. So XStoreName and friends expect + // this in Host Portable Character Encoding instead of UTF-8, which I believe + // is Compound Text. This shouldn't matter 90% of the time since this is the + // fallback to the UTF8 property above. + XStoreName(xdisplay_, xwindow_, utf8str.c_str()); return true; }