Skip to content

Instantly share code, notes, and snippets.

@jacres
Created August 9, 2013 02:23
Show Gist options
  • Save jacres/6190686 to your computer and use it in GitHub Desktop.
Save jacres/6190686 to your computer and use it in GitHub Desktop.
unused variable
Window x11Window = glfwGetX11Window( ofAppGLFWWindow::windowP );
Window root, child;
unsigned int mask;
int rootX, rootY, childX, childY;
if(x11Window) { printf("...\n"); }
XQueryPointer( glXGetCurrentDisplay(), x11Window, &root, &child, &rootX, &rootY, &childX, &childY, &mask);
XWarpPointer( glXGetCurrentDisplay(), None, x11Window, 0, 0, 0, 0, m_windowWidth/2, m_windowHeight/2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment