diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2006-08-23 12:57:42 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2006-08-23 12:57:42 +0000 |
| commit | 74b91fe3718e47df5c09fe29bb82341b6c77ccb4 (patch) | |
| tree | e5a61cf45a663e8baa0f9964ced3d97c5bc9cb1e /src/Fl_Positioner.cxx | |
| parent | 05cd337c05c0b2775004d7a5e6be39271a5d4be8 (diff) | |
Fixed Fl_Positioner callback when released (STR #1387)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5347 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Positioner.cxx')
| -rw-r--r-- | src/Fl_Positioner.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Fl_Positioner.cxx b/src/Fl_Positioner.cxx index 205ddffc7..a960f707c 100644 --- a/src/Fl_Positioner.cxx +++ b/src/Fl_Positioner.cxx @@ -99,7 +99,11 @@ int Fl_Positioner::handle(int event, int X, int Y, int W, int H) { if (yy > ymin) yy = ymin; if (yy < ymax) yy = ymax; } - if (value(xx, yy)) set_changed();} + if (xx != xvalue_ || yy != yvalue_) { + xvalue_ = xx; yvalue_ = yy; + set_changed(); + redraw(); + } } if (!(when() & FL_WHEN_CHANGED || (when() & FL_WHEN_RELEASE && event == FL_RELEASE))) return 1; if (changed() || when()&FL_WHEN_NOT_CHANGED) { |
