Bug 37244 - XTranslateCoordinates takes int arguments but clamps to short
Summary: XTranslateCoordinates takes int arguments but clamps to short
Alias: None
Product: xorg
Classification: Unclassified
Component: Lib/Xlib (show other bugs)
Version: unspecified
Hardware: All All
: medium minor
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
Keywords: x12
Depends on:
Reported: 2011-05-15 22:11 UTC by Campbell Barton
Modified: 2011-10-09 11:11 UTC (History)
0 users

See Also:
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.
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:
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.