summaryrefslogtreecommitdiff
path: root/src/Fl_Value_Input.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Value_Input.cxx')
-rw-r--r--src/Fl_Value_Input.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Fl_Value_Input.cxx b/src/Fl_Value_Input.cxx
index 60f204eb4..7b804225d 100644
--- a/src/Fl_Value_Input.cxx
+++ b/src/Fl_Value_Input.cxx
@@ -100,8 +100,10 @@ int Fl_Value_Input::handle(int event) {
if (value() != previous_value() || !Fl::event_is_click())
handle_release();
else {
+ Fl_Widget_Tracker wp(&input);
input.handle(FL_PUSH);
- input.handle(FL_RELEASE);
+ if (wp.exists())
+ input.handle(FL_RELEASE);
}
return 1;
case FL_FOCUS: