On 2010-03-22 15:05-0400 Hazen Babcock wrote:

> Alan W. Irwin wrote:
>> 
>> If I press the 'l' key for -dev xwin in -locate mode for example 1, here is
>> the response I get:
>> 
>> subwin = 0, wx = 2.936888,  wy = 14.595193, dx = 0.262060,  dy = 0.718261,
>> c = 'l'
>
> Do you only get output from the xwin driver for mouse press and key events?

Yes.

> Or are you also getting output when you move the cursor around?

No.  I think we want to suppress such output on systems (such as yours) that
do give additional output when the cursor is moved around without pressing
or releasing a mouse button or key.  N.B. On my system xev does report every
mouse move, but it distinguishes that from key/mouse button presses and
releases.  Is that the case on your system?  If so, then it seems to me
copying the xev code that generates symbolic names for all keys/mouse
buttons when they are released (and simply dropping everything else that is
not a key or button release event) is the way to get a uniform response to
key/button releases (but no other keyboard/mouse events) from X (and xcairo
and qtwidget that eventually boil down to an X call) on all systems.

It just struck me that a useful exception to the above would be to return a
distinguishable id for mouse button press and release events.  That would
allow, e.g., mouse drag-and-drop for all apps that use interactive PLplot
devices.  But if you are following the xev code in any case, distinguishing
those two mouse event cases is not much additional implementation work.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to