mirror of https://github.com/bkaradzic/bgfx
entry: Fixed X11 setWindowTitle to display UTF-8 properly.
This commit is contained in:
parent
4568dd7f89
commit
01b0c00780
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue