Retrieve the window name and role

desktop-environmenteclipsewindowwindow-manager

I'm running Eclipse and I detached some of the windows. Now I have 4 windows linked to Eclipse. What I need is to be able to identify each individual window and be able to control it.

If I run tools like: xprop, xwininfo, or wmctrl -l I can retrieve the WM_CLASS and WM_NAME for the main window but I can't get them for the other 3 child windows.

How can I retrieve the WM_NAME and WM_ROLE for all 4 windows?

Best Answer

In searching for an answer to your question I ran across this very in depth article on window matching that could be very helpful. You may find that Eclipse is to blame for not following the correct naming standards in generating the child windows making this a bug for which you should request a fix from the developers.