Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
Does X require every window to have those attributes? If you don't see them when running xprop on them then it may be the case that they're just missing for those windows. – Joseph Garvin May 17 '14 at 21:53
@JosephGarvin I needed those in order to be able to position the windows in the places I wanted to instead of where they get dumped by default. – slybloty May 20 '14 at 0:44

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.

share|improve this answer
I've used your guidance to further my research, but the question still stands. Thanks. – slybloty Jul 24 '12 at 18:18

Using Intrinsics can solve your problem of getting WM_WINDOW_ROLE and WM_NAME.

share|improve this answer
for people who down voted C language interface index of Intrinsics – MahmutBulut Jul 18 '12 at 15:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.