From a44593f9af66ea83b619bcb81217c180a15c4092 Mon Sep 17 00:00:00 2001 From: tasticolly Date: Wed, 8 Apr 2026 20:49:52 +0300 Subject: [PATCH] fix(xrandr): pass screen_resources to XRRGetCrtcInfo (was passing output_info) --- screeninfo/enumerators/xrandr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screeninfo/enumerators/xrandr.py b/screeninfo/enumerators/xrandr.py index b3dd018..487cdaf 100644 --- a/screeninfo/enumerators/xrandr.py +++ b/screeninfo/enumerators/xrandr.py @@ -97,7 +97,7 @@ def check_primary(display_id: int, crtc: XRRCrtcInfo) -> bool: try: crtc_info = xrandr.XRRGetCrtcInfo( display, - ctypes.byref(output_info), + screen_resources, output_info.contents.crtc, )