mirror of
https://github.com/glfw/glfw.git
synced 2025-10-02 21:00:57 +00:00
implemented get window title for win32
This commit is contained in:
parent
4d076583b2
commit
70948d0bcc
@ -1471,6 +1471,7 @@ char* _glfwPlatformGetWindowTitle(_GLFWwindow* window)
|
|||||||
if(count == 0)
|
if(count == 0)
|
||||||
{
|
{
|
||||||
int error;
|
int error;
|
||||||
|
SetLastError(0);
|
||||||
error = GetLastError();
|
error = GetLastError();
|
||||||
|
|
||||||
if(error != 0)
|
if(error != 0)
|
||||||
|
@ -2084,7 +2084,6 @@ char* _glfwPlatformGetWindowTitle(_GLFWwindow* window)
|
|||||||
char* title;
|
char* title;
|
||||||
|
|
||||||
_glfwGrabErrorHandlerX11();
|
_glfwGrabErrorHandlerX11();
|
||||||
|
|
||||||
if (XGetWMName(_glfw.x11.display, window->x11.handle, &textProperty) == 0)
|
if (XGetWMName(_glfw.x11.display, window->x11.handle, &textProperty) == 0)
|
||||||
{
|
{
|
||||||
_glfwInputErrorX11(GLFW_PLATFORM_ERROR, "X11: Could not get window title");
|
_glfwInputErrorX11(GLFW_PLATFORM_ERROR, "X11: Could not get window title");
|
||||||
@ -2115,7 +2114,6 @@ char* _glfwPlatformGetWindowTitle(_GLFWwindow* window)
|
|||||||
XFree(textProperty.value);
|
XFree(textProperty.value);
|
||||||
if (charList != NULL)
|
if (charList != NULL)
|
||||||
XFreeStringList(charList);
|
XFreeStringList(charList);
|
||||||
|
|
||||||
return calloc(1, sizeof(char));
|
return calloc(1, sizeof(char));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user