I updated FLTK a few hours ago do that I could test a patch in another conversation.
My app started to behave weirdly. I was getting callbacks for Fl_Input_Choice just moving windows around near it. I had set the widget when to FL_WHEN_RELEASE_ALWAYS and it seems this update has changed the behaviour:
philip@chinook:~/dev/fltk$ git diff 33b601e57404fcef058a992ba7767f2c4f16a81b fd791a068e39e06785adc44693f4c533d3d6c903 src/Fl_Input_Choice.cxx
diff --git a/src/Fl_Input_Choice.cxx b/src/Fl_Input_Choice.cxx
These additional callbacks were causing a lot of unnecessary validation and updates of windows. I have modified my application to check whether the value has changed before doing the validation, but I was wondering why the change.
Sorry about the confusion and the additional work. This was a big commit and some untested code slipped into it. I reverted the issue and recommitted to master.
- Matthias
Commit 2bab8c94ff0d2440520b0aeefc3edaec18c02595:
Revert InputChoice from fd791a0
A change to Fl_Input_Choice callbacks slipped into
fd791a068e39e06785adc44693f4c533d3d6c903.
This Commit removes that change. It may need to be
fixed and reapplied later in its own Commit.
Sorry about the confusion and the additional work. This was a big commit and some untested code slipped into it. I reverted the issue and recommitted to master.
- Matthias
Thanks Matthias,
I no longer see these call backs when the widget loses focus.
Phil.