octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #43664] ginput() freezes upon double-clicking


From: Adrian
Subject: [Octave-bug-tracker] [bug #43664] ginput() freezes upon double-clicking in a fltk figure
Date: Sat, 22 Nov 2014 11:40:26 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.2.0

Follow-up Comment #3, bug #43664 (project octave):

Thanks a lot, the patch squashes the bug indeed.

Note however that it now becomes quite impossible to distinguish a simple from
a double-click, and that information is lost. I'd advocate keeping only the
first line of your patch, and explicitly say in the function doc that the
returned array *may* contain more entries than requested, in case of very fast
clicks (e.g. double-clicks). 

Another solution would be to have ginput remember the additional click for the
next call on the same window. This is not very satisfying though, because it
is still impossible for a script to find out whether a double-click happened:
it would require a non-blocking or timed-out second call to ginput(1), which
does not exist.

I'll try to find out how Matlab behaves in this regard.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?43664>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]