15.9 Coordinate Transformation

XTranslateCoordinates() translates coordinates relative to one window into the coordinates relative to a second and determines whether the resulting position relative to the second window is in a subwindow of the second window.

Because the window-based coordinate system is so convenient, this function is rarely needed. Since XTranslateCoordinates() makes a round-trip request, it cannot be used heavily to port to X programs that use global coordinates.

Get XLIB Programming Manual, Rel. 5, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.