Emulate Double Click Events
Peter Hutterer
peter.hutterer at who-t.net
Sat Nov 22 15:27:01 PST 2008
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
More information about the xorg
mailing list