WindowFromPoint - Xwindows
This is a discussion on WindowFromPoint - Xwindows ; HI
Windows has a WindowFromPoint API that can retrieve the handle of a
window which the cursor is in. Is there a same API that X11 has? if
not, how to implement this feature?
thanks a lot
Jinhao...
-
WindowFromPoint
HI
Windows has a WindowFromPoint API that can retrieve the handle of a
window which the cursor is in. Is there a same API that X11 has? if
not, how to implement this feature?
thanks a lot
Jinhao
-
Re: WindowFromPoint
In comp.windows.x, Jinhao
wrote
on 13 Feb 2006 00:19:00 -0800
<1139818740.299627.223870@z14g2000cwz.googlegroups. com>:
> HI
> Windows has a WindowFromPoint API that can retrieve the handle of a
> window which the cursor is in. Is there a same API that X11 has? if
> not, how to implement this feature?
>
> thanks a lot
> Jinhao
>
XQueryPointer, though most events have the Window in which they
occurred.
--
#191, ewill3@earthlink.net
It's still legal to go .sigless.
-
Re: WindowFromPoint
The Ghost In The Machine writes:
> In comp.windows.x, Jinhao wrote
>> Windows has a WindowFromPoint API that can retrieve the handle of a
>> window which the cursor is in. Is there a same API that X11 has? if
>> not, how to implement this feature?
>
> XQueryPointer, though most events have the Window in which they
> occurred.
Or XTranslateCoordinates if one must use previously retrieved coordinates.
With it, remember that window managers can reparent windows.
But sure it is better to use the Window from the event, because then it
should be correct even if the window (or some other) has since been moved.
-
Re: WindowFromPoint
thank you very much,
i will take a try...