add setting an utf8 string to _NET_WM_NAME for x11
This commit is contained in:
parent
fa17b7e616
commit
8e2f4cfb31
@ -1512,6 +1512,12 @@ void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title)
|
|||||||
// Set window & icon title
|
// Set window & icon title
|
||||||
XStoreName(_glfwLibrary.X11.display, window->X11.handle, title);
|
XStoreName(_glfwLibrary.X11.display, window->X11.handle, title);
|
||||||
XSetIconName(_glfwLibrary.X11.display, window->X11.handle, title);
|
XSetIconName(_glfwLibrary.X11.display, window->X11.handle, title);
|
||||||
|
|
||||||
|
XChangeProperty(_glfwLibrary.X11.display, window->X11.handle,
|
||||||
|
XInternAtom(_glfwLibrary.X11.display, "_NET_WM_NAME", False),
|
||||||
|
XInternAtom(_glfwLibrary.X11.display, "UTF8_STRING", False),
|
||||||
|
8, PropModeReplace, (unsigned char *) title,
|
||||||
|
strlen(title));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user