Fix bad argument order to XTranslateCoordinates.
authorDiego Borghetti <bdiego@gmail.com>
Mon, 31 Dec 2007 06:19:04 +0000 (06:19 +0000)
committerDiego Borghetti <bdiego@gmail.com>
Mon, 31 Dec 2007 06:19:04 +0000 (06:19 +0000)
Take me a long time catch this :/ and i really don't know how this
work before, because clientToScreen always return bad values.

intern/ghost/intern/GHOST_WindowX11.cpp

index 30fa30e59e6233ffd013e64d2052c14cb3778c80..c628035c15d629920a1d33b1e18469acd92593e1 100644 (file)
@@ -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,