summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Positioner.cxx6
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) {