I'm writting an application using C and Xlib and I'd like to know if it's possible to fetch a list of a window's input elements widgets (textboxes, buttons, etc).
I'm retrieving the list of windows using the XQueryTree function. What i'd like to accomplish is to be able to set focus to a certain textbox or button within a given window.
I know this is handled by the toolkit (GTK, QT, ..) but I'm wondering if theres any chance this information is made available to the Xserver.