Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
//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
You can’t perform that action at this time.