Fix bad argument order to XTranslateCoordinates.

Take me a long time catch this :/ and i really don't know how this
work before, because clientToScreen always return bad values.
This commit is contained in:
Diego Borghetti 2007-12-31 06:19:04 +00:00
parent 8814476714
commit 59751edadd

@ -565,15 +565,15 @@ screenToClient(
GHOST_TInt32& outX,
GHOST_TInt32& outY
) const {
// not sure about this one!
// Now, this is correct!
int ax,ay;
Window temp;
XTranslateCoordinates(
m_display,
RootWindow(m_display, m_visual->screen),
m_window,
RootWindow(m_display, m_visual->screen),
inX,
inY,
&ax,