mirror of
https://github.com/glfw/glfw.git
synced 2025-06-15 20:22:15 +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)
|
||||
{
|
||||
int error;
|
||||
SetLastError(0);
|
||||
error = GetLastError();
|
||||
|
||||
if(error != 0)
|
||||
|
@ -2084,7 +2084,6 @@ char* _glfwPlatformGetWindowTitle(_GLFWwindow* window)
|
||||
char* title;
|
||||
|
||||
_glfwGrabErrorHandlerX11();
|
||||
|
||||
if (XGetWMName(_glfw.x11.display, window->x11.handle, &textProperty) == 0)
|
||||
{
|
||||
_glfwInputErrorX11(GLFW_PLATFORM_ERROR, "X11: Could not get window title");
|
||||
@ -2115,7 +2114,6 @@ char* _glfwPlatformGetWindowTitle(_GLFWwindow* window)
|
||||
XFree(textProperty.value);
|
||||
if (charList != NULL)
|
||||
XFreeStringList(charList);
|
||||
|
||||
return calloc(1, sizeof(char));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user