From 4a42364a19f05c07fe08b34794e1d12f8bae0724 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Tue, 19 Dec 2017 21:32:04 +0100 Subject: [PATCH] Return correct values for frame size --- src/wl_window.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/wl_window.c b/src/wl_window.c index dd4e6a2f..d39267dd 100644 --- a/src/wl_window.c +++ b/src/wl_window.c @@ -898,8 +898,14 @@ void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window, int* left, int* top, int* right, int* bottom) { - // TODO: will need a proper implementation once decorations are - // implemented, but for now just leave everything as 0. + if (top) + *top = _GLFW_DECORATION_TOP; + if (left) + *left = _GLFW_DECORATION_WIDTH; + if (right) + *right = _GLFW_DECORATION_WIDTH; + if (bottom) + *bottom = _GLFW_DECORATION_WIDTH; } void _glfwPlatformGetWindowContentScale(_GLFWwindow* window,