From b1fd3c00d0ebd1d8892a4dd52140cc4d1970d60b Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Tue, 26 Aug 2014 14:46:02 +0200 Subject: [PATCH] Removed duplicate window position clearing. --- src/wl_window.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/wl_window.c b/src/wl_window.c index 25a533bc..398cabe0 100644 --- a/src/wl_window.c +++ b/src/wl_window.c @@ -157,16 +157,11 @@ void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title) void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos) { - // A Wayland client is not aware of its position, so just warn and set it - // to (0, 0) + // A Wayland client is not aware of its position, so just warn and leave it + // as (0, 0) _glfwInputError(GLFW_PLATFORM_ERROR, "Wayland: Window position retreival not supported"); - - if (xpos) - *xpos = 0; - if (ypos) - *ypos = 0; } void _glfwPlatformSetWindowPos(_GLFWwindow* window, int xpos, int ypos)