With x11 get window at coordinates

前端 未结 1 1481
刺人心
刺人心 2021-01-24 19:33

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

1条回答
  •  长发绾君心
    2021-01-24 20:11

    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

    0 讨论(0)
提交回复
热议问题