Path: utzoo!attcan!uunet!husc6!bloom-beacon!ginsu.apple.COM!davep From: davep@ginsu.apple.COM Newsgroups: comp.windows.x Subject: Re: Finding which windows are under cursor Message-ID: <8812152343.AA15544@ginsu.apple> Date: 15 Dec 88 23:43:29 GMT References: <8812021922.AA13237@EXPO.LCS.MIT.EDU> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 10 > Is there any way to find what windows are under the cursor (or under any > specific point). > > Yes, you can use XQueryTree to determine the hierarchy and XGetGeometry > to determine positioning. Just scanning old mail here... In the general case, you probably also want to call XGetWindowAttributes and check that the map_state value is IsViewable to make sure the window is mapped before assuming the cursor was positioned in it.