diff --git a/src/x11_monitor.c b/src/x11_monitor.c index 62d5df64..6c166e7c 100644 --- a/src/x11_monitor.c +++ b/src/x11_monitor.c @@ -354,11 +354,11 @@ void _glfwPlatformGetMonitorWorkarea(_GLFWmonitor* monitor, int* xpos, int* ypos if (xpos) *xpos = extents[0]; - if (xpos) + if (ypos) *ypos = extents[1]; - if (xpos) + if (width) *width = extents[2]; - if (xpos) + if (height) *height = extents[3]; XFree(extents);