diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Repeat_Button.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Fl_Repeat_Button.cxx b/src/Fl_Repeat_Button.cxx index 638cc4c81..2252a3a24 100644 --- a/src/Fl_Repeat_Button.cxx +++ b/src/Fl_Repeat_Button.cxx @@ -49,6 +49,8 @@ int Fl_Repeat_Button::handle(int event) { if (Fl::visible_focus()) Fl::focus(this); newval = Fl::event_inside(this); J1: + if (!active()) + newval = 0; if (value(newval)) { if (newval) { Fl::add_timeout(INITIALREPEAT,repeat_callback,this); |
