mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 22:14:34 +00:00
wayland: Implement remaining attribute getters
This commit is contained in:
parent
e673bdc617
commit
c301a1e51a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user