From 1bc4b2781e4b803c0464c27b756cbcfe4c0dd77e Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 9 Apr 2016 00:55:03 +0100 Subject: [PATCH] wayland: Implement remaining getters. --- src/wl_window.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/wl_window.c b/src/wl_window.c index 085863009..e4f4c6857 100644 --- a/src/wl_window.c +++ b/src/wl_window.c @@ -508,8 +508,8 @@ void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window, int* left, int* top, int* right, int* bottom) { - // TODO - fprintf(stderr, "_glfwPlatformGetWindowFrameSize not implemented yet\n"); + // TODO: will need a proper implementation once decorations are + // implemented, but for now just leave everything as 0. } void _glfwPlatformIconifyWindow(_GLFWwindow* window) @@ -592,13 +592,12 @@ void _glfwPlatformSetWindowMonitor(_GLFWwindow* window, int _glfwPlatformWindowFocused(_GLFWwindow* window) { - // TODO - return GLFW_FALSE; + return _glfw.wl.keyboardFocus == window; } int _glfwPlatformWindowIconified(_GLFWwindow* window) { - // TODO + // TODO: move to xdg_shell, wl_shell doesn't have any iconified concept. return GLFW_FALSE; }