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, )