Bug 37244

Summary: XTranslateCoordinates takes int arguments but clamps to short
Product: xorg Reporter: Campbell Barton <ideasman42>
Component: Lib/XlibAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED WONTFIX QA Contact: Xorg Project Team <xorg-team>
Severity: minor    
Priority: medium Keywords: x12
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Campbell Barton 2011-05-15 22:11:27 UTC
The input of XTranslateCoordinates are ints however internally the values are clamped to shorts.

From looking at the source code this is intentional however its really not useful when getting offscreen coords.

Reported as a bug in blender.
http://projects.blender.org/tracker/index.php?func=detail&aid=27358&group_id=9&atid=498
Comment 1 Alan Coopersmith 2011-05-15 23:59:07 UTC
The X protocol defines coordinates as signed 16 bit intergers.
Changing this would require a protocol bump, to X12. as discussed at:
   http://wiki.x.org/wiki/Development/X12#A15bitcoordinatelimit
but no one is seriously working on that.
Comment 2 Jeremy Huddleston Sequoia 2011-10-09 02:14:46 UTC
Closing as "WONTFIX" ... this is documented for X12 if that ever happens.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.