Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@dominictarr
Created August 5, 2012 02:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dominictarr/3261138 to your computer and use it in GitHub Desktop.
Save dominictarr/3261138 to your computer and use it in GitHub Desktop.
//I want to call this function, and retrive parent and root.
Status XQueryTree(Display *display, Window w, Window *root_return, Window *parent_return, Window **children_return, unsignedint *nchildren_return);
//I already have dsp, and win.
Window root = 0;
Window parent = 0;
Window* children;
unsigned int schildren = 0;
XQueryTree(dsp, win, &root, &parent, &children, &nchildren);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment