jacres
8/7/2013 - 2:32 PM

gistfile1.txt

    Window x11Window = glfwGetX11Window( ofAppGLFWWindow::windowP );

    Window root, child;
    unsigned int mask;
    int rootX, rootY, childX, childY;
    
    XQueryPointer( glXGetCurrentDisplay(), x11Window, &root, &child, &rootX, &rootY, &childX, &childY, &mask);
    XWarpPointer( glXGetCurrentDisplay(), None, x11Window, 0, 0, 0, 0, m_windowWidth/2, m_windowHeight/2 );
src/testApp.cpp: In member function ‘virtual void testApp::update()’:
src/testApp.cpp:760:12: warning: unused variable ‘x11Window’ [-Wunused-variable]
     Window x11Window = glfwGetX11Window( ofAppGLFWWindow::windowP );
            ^
src/testApp.cpp:766:44: error: ‘x11Window’ was not declared in this scope
     XQueryPointer( glXGetCurrentDisplay(), x11Window, &root, &child, &rootX, &rootY, &childX, &childY, &mask);
                                            ^
               ^
make[1]: *** [obj/linux64/Release/src/testApp.o] Error 1
make: *** [Release] Error 2