entry: Fixed X11 setWindowTitle to display UTF-8 properly.

This commit is contained in:
Бранимир Караџић 2020-12-03 07:54:12 -08:00
parent 4568dd7f89
commit 01b0c00780
1 changed files with 4 additions and 1 deletions

View File

@ -746,7 +746,10 @@ namespace entry
{
Display* display = s_ctx.m_display;
Window window = s_ctx.m_window[_handle.idx];
XStoreName(display, window, _title);
XTextProperty tp;
Xutf8TextListToTextProperty(display, (char**)&_title, 1, XUTF8StringStyle, &tp);
XSetWMName(display, window, &tp);
}
void setWindowFlags(WindowHandle _handle, uint32_t _flags, bool _enabled)