1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 20:28:49 -05:00

wayland: Implement glfwSetWindowMonitor

This commit is contained in:
Emmanuel Gil Peyrot 2016-04-09 00:53:03 +01:00 committed by Camilla Berglund
parent 5034c6c65e
commit 71cedc6cfe

View File

@ -558,8 +558,19 @@ void _glfwPlatformSetWindowMonitor(_GLFWwindow* window,
int width, int height, int width, int height,
int refreshRate) int refreshRate)
{ {
// TODO if (monitor)
fprintf(stderr, "_glfwPlatformSetWindowMonitor not implemented yet\n"); {
wl_shell_surface_set_fullscreen(
window->wl.shell_surface,
WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT,
refreshRate * 1000, // Convert Hz to mHz.
monitor->wl.output);
}
else
{
wl_shell_surface_set_toplevel(window->wl.shell_surface);
}
_glfwInputWindowMonitorChange(window, monitor);
} }
int _glfwPlatformWindowFocused(_GLFWwindow* window) int _glfwPlatformWindowFocused(_GLFWwindow* window)