From d28ff9790ff7293977a26d6c1e00523273607a5c Mon Sep 17 00:00:00 2001 From: Drew Weymouth Date: Sat, 6 Sep 2025 07:33:27 -0700 Subject: [PATCH] check crtcInfo for nill --- src/x11_monitor.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/x11_monitor.c b/src/x11_monitor.c index 3af827520..74c57ed01 100644 --- a/src/x11_monitor.c +++ b/src/x11_monitor.c @@ -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;