Emulate Double Click Events
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
> xorg mailing list
> xorg at lists.freedesktop.org
Color coding for safety: Windows Live Hotmail alerts you to suspicious email.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the xorg