Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有探索 X 窗口层次结构的程序?任何类似于 MS 的 Spy++ ( http://msdn.microsoft.com/en-us/library/dd460727.aspx )
你可以写一个。从根窗口开始使用XQueryTree 。
另外,请仔细研究EWMH。它可能有一些相关的东西(例如_NET_CLIENT_LIST)
_NET_CLIENT_LIST
最后,编写您自己的窗口管理器,或调整现有的窗口管理器以满足您的需要。窗口管理器必须知道顶级窗口的列表。
请记住,某些 X 顶级窗口可能已由运行在不同机器上的某些远程 X11客户端应用程序打开(例如 thru )ssh -X
ssh -X
还要查看xps和xwininfo;看到这个相关的问题。
xps