This commit is contained in:
Drew Weymouth 2025-09-06 07:41:35 -07:00 committed by GitHub
commit 2d5d2c1d7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -151,6 +151,11 @@ void _glfwPollMonitorsX11(void)
}
XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, oi->crtc);
if (!ci) {
XRRFreeOutputInfo(oi);
continue;
}
if (ci->rotation == RR_Rotate_90 || ci->rotation == RR_Rotate_270)
{
widthMM = oi->mm_height;