Incorrect comment about XRRGetScreenSizeRange return code in Xrandr.h
Submitted by Peter Åstrand
Assigned to Keith Packard @keithp
Link to original bug (#105191)
Description
In Xrandr.h, there's a comment:
/* despite returning a Status, this returns 1 for success */
Status
XRRGetScreenSizeRange (Display *dpy, Window window,
int *minWidth, int *minHeight,
int *maxWidth, int *maxHeight);
This comment was added in:
commit 5e94f071
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.