tags:

views:

80

answers:

0

Hello,

I want to print on the screen the information 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 its goal.