Skip to content
Snippets Groups Projects
Commit b1fd3c00 authored by Camilla Löwy's avatar Camilla Löwy
Browse files

Removed duplicate window position clearing.

parent c700978c
No related branches found
No related tags found
No related merge requests found
...@@ -157,16 +157,11 @@ void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title) ...@@ -157,16 +157,11 @@ void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title)
void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos) void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos)
{ {
// A Wayland client is not aware of its position, so just warn and set it // A Wayland client is not aware of its position, so just warn and leave it
// to (0, 0) // as (0, 0)
_glfwInputError(GLFW_PLATFORM_ERROR, _glfwInputError(GLFW_PLATFORM_ERROR,
"Wayland: Window position retreival not supported"); "Wayland: Window position retreival not supported");
if (xpos)
*xpos = 0;
if (ypos)
*ypos = 0;
} }
void _glfwPlatformSetWindowPos(_GLFWwindow* window, int xpos, int ypos) void _glfwPlatformSetWindowPos(_GLFWwindow* window, int xpos, int ypos)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment