With x11 get window at coordinates

末鹿安然 提交于 2019-12-02 08:05:51

问题


I want to get the top most window that is at position x and y. In Winapi I do this with WindowFromPoint seen here: https://msdn.microsoft.com/en-us/library/ms633558%28v=vs.85%29.aspx

Is there any equivalent in x11? I have covered the entire screen with a window and i want to know all the windows that are at the point in z order.


回答1:


XQueryTree gives list of window in the stacking order. You would need to query dimensions for every window in the list and stop when your point is within rectangle



来源:https://stackoverflow.com/questions/31712876/with-x11-get-window-at-coordinates

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!