X/Xlib programming questions (solved)

X/Xlib programming questions (solved)

Erez D erez0001 at gmail.com
Thu Jan 7 08:19:46 IST 2010


On Wed, Jan 6, 2010 at 7:44 PM, ik <idokan at gmail.com> wrote:
> Try XQueryTree and XGetWindowAttributes to find if it's the proper window,
> unless i'm still missing something here.
XQueryTree and XGetWindowAttributes will do the work,

however, XTranslateCoordinates takes less calls (and syncs with the server)

thanks,
erez.

>
> Ido
> http://ik.homelinux.org/
>
>
> On Wed, Jan 6, 2010 at 11:19, Erez D <erez0001 at gmail.com> wrote:
>>
>> On Mon, Jan 4, 2010 at 2:59 PM, ik <idokan at gmail.com> wrote:
>> > Hello Erez,
>> >
>> > I think you are looking for XQueryPointer
>> > (http://www.xfree86.org/4.4.0/XQueryPointer.3.html).
>>
>> as i said: i do not want to move the pointer. the window i am looking
>> for is not under the pointer.
>>
>>
>> thanks anyway,
>> erez.
>> >
>> > Ido
>> > http://ik.homelinux.org/
>> >
>> >
>> > On Mon, Jan 4, 2010 at 12:20, Erez D <erez0001 at gmail.com> wrote:
>> >>
>> >> hello
>> >>
>> >> i want to send keyboard and mouse event to a window at position x,y.
>> >> i thought of using XSendEvent
>> >>
>> >> how do i find which is the top most window at pos x,y (without moving
>> >> the pointer position) ?
>> >> what fields do i need to fill in the event i send via XSendEvent,
>> >> i guess event.xbutton.serial and event.xbutton.send_event and
>> >> event.xbutton.display are filled automatically by xlib. am i correct ?
>> >>
>> >> thanks,
>> >> erez.
>> >>
>> >> _______________________________________________
>> >> Linux-il mailing list
>> >> Linux-il at cs.huji.ac.il
>> >> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>> >
>> >
>
>



More information about the Linux-il mailing list