Top level window on X Window System

Posted by La Chamelle on Stack Overflow See other posts from Stack Overflow or by La Chamelle
Published on 2010-03-12T09:13:38Z Indexed on 2010/03/12 9:17 UTC
Read the original article Hit count: 544

Filed under:
|
|
|

Hello,

i want to print on the screen the informations about Top level windows under Linux.

I use the xlib functions. I successfully recurse from the root window to print all the informations about all the element on display.

But i need only the Top-Level window. I don't find any good way to filter.

From wikipedia :

The top-level windows are exactly the direct subwindows of the root window.

With that definition , I have some windows like: gnome-session, seahorse-daemon,notify-osd or icons, on my list and i don't want them.

I also find a function : XmuClientWindow, but i don't understand it's goal.

Thanks to help me.

© Stack Overflow or respective owner

Related posts about xlib

Related posts about xwindows