[comp.windows.x] Double Clicking of Mouse buttons in X

misra@vivaldi.cs.unc.edu (Rajeev Misra) (02/05/91)

I am new to this newsgroup and may have missed a discussion that involved the
above. We have to implement an interface in which we take different actions  
(say 1 and 2) on a single or double click of the mouse buttons

If someone has already done this I would like to have his/her opnion on it?
The two ways we can think of doing it are : By doing action 1 and then if
the second event arrives within some fixed time we do action 2. The other
way would be by peeking into the X Event queue (after waiting for some time).

I would appreciate it if you send your opnions and experiences by e-mail since
I am not a regular reader.

Thanks,

Rajeev Misra

(misra@cs.unc.edu)