mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 04:54:35 +00:00
parent
f1d40fa046
commit
bea4818030
@ -350,10 +350,15 @@ void _glfwPlatformGetMonitorWorkarea(_GLFWmonitor* monitor, int* xpos, int* ypos
|
||||
|
||||
_glfwGetWindowPropertyX11(_glfw.x11.root, _glfw.x11.NET_WORKAREA, XA_CARDINAL, (unsigned char**) &extents);
|
||||
|
||||
*xpos = extents[0];
|
||||
*ypos = extents[1];
|
||||
*width = extents[2];
|
||||
*height = extents[3];
|
||||
if (xpos)
|
||||
*xpos = extents[0];
|
||||
if (xpos)
|
||||
*ypos = extents[1];
|
||||
if (xpos)
|
||||
*width = extents[2];
|
||||
if (xpos)
|
||||
*height = extents[3];
|
||||
|
||||
XFree(extents);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user