Add a FreeMonitor platform API

This fixes the leak of a wl_output object everytime a monitor is freed.
This commit is contained in:
Emmanuel Gil Peyrot
2018-02-24 21:53:39 +01:00
committed by linkmauve
parent b88be7c1e9
commit 8d98a6e37d
8 changed files with 29 additions and 0 deletions
+4
View File
@@ -308,6 +308,10 @@ void _glfwRestoreVideoModeX11(_GLFWmonitor* monitor)
////// GLFW platform API //////
//////////////////////////////////////////////////////////////////////////
void _glfwPlatformFreeMonitor(_GLFWmonitor* monitor)
{
}
void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos)
{
if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken)