I want to print on the screen information about top-level windows under Linux.
I am using xlib functions. I will successfully return from the root window to print all the information about the entire displayed item.
But I only need a top-level window. I can not find a good way to filter.
From Wikipedia:
Top-level windows are exactly the Direct sub-windows of the root window.
With this definition, I have some windows, such as: gnome-session, seahorse-daemon, notify-osd or the icons in my list, and I do not want them.
I also found a function: XmuClientWindow, but I do not understand its purpose.
, , . - . Root Window (Wikipedia), , , . , . XQueryTree , .
, , , , , . XmuClientWindow , ( ) . reparent , , , ( , , ). / , , , (, , ). (XGetWMHints (3), XGetWMNormalHints (3), XGetWMSizeHints (3)), , - , , .
. VirtualBox .
wmctrl -l
root.
Source: https://habr.com/ru/post/1736621/More articles:On MacOSX, in a C ++ program, what guarantees can I get in an IO file - c ++WPF: stopping ContextMenu from closing - c #How to allocate more memory for a buffer in C ++? - c ++How to set a model attribute for each action - grailswhy can't I comment on lines in visual mode - vimHow to work with Hibernate hql result with multiple connections in Object-Oriented Way? - javaHow to properly use multiple restrictions in C # Generics? - genericsChanging keys in "for (keys% hash)" {} "- loop - foreachGet the process id of the process started using CreateObject in .NET. - vb.netSetting a printer password programmatically from C # - c #All Articles