Emulate Double Click Events

micki _ micki_b1 at hotmail.com
Sat Nov 22 22:09:03 PST 2008




What is the time period the toolkit expects for double click events.

> Date: Sun, 23 Nov 2008 09:27:01 +1000
> From: peter.hutterer at who-t.net
> To: maillist.xorg at gmail.com
> Subject: Re: Emulate Double Click Events
> CC: xorg at lists.freedesktop.org
> 
> On Sat, Nov 22, 2008 at 08:08:35PM +0200, dana goren wrote:
> > I would like to emulate double click event.
> > I use XTestFakeButtonEvent, the double clicks works only if i send
> > 2 consecutive XTestFakeButtonEvent.
> > Do i have to use a timer to check the period from one event to another
> > in order to emulate double click,
> 
> the X Protocol does not specify double clicks, it is enforced by the toolkit
> by checking the timestamps between two press/release events.
> In your case, you need to send two button events within the period the toolkit
> expects.
> 
> Cheers,
>   Peter
> _______________________________________________
> xorg mailing list
> xorg at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xorg

_________________________________________________________________
Color coding for safety: Windows Live Hotmail alerts you to suspicious email.
http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_safety_112008 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20081123/36832035/attachment.html>


More information about the xorg mailing list