In Xrandr.h, there's a comment:
/* despite returning a Status, this returns 1 for success */
XRRGetScreenSizeRange (Display *dpy, Window window,
int *minWidth, int *minHeight,
int *maxWidth, int *maxHeight);
This comment was added in:
GetScreenSizeRange: Document funky return code in the header
However, the return code is not funky at all - "1 for sucess" is the normal Status code approach. For example, see https://www.x.org/releases/X11R7.6/doc/libX11/specs/libX11/libX11.html:
"Some functions return Status, an integer error indication. If the function fails, it returns a zero."
IOW, the comment should be removed.
-- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/lib/libxrandr/issues/7.