summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Tabs.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Fl_Tabs.cxx b/src/Fl_Tabs.cxx
index a376fb9d7..cd2240652 100644
--- a/src/Fl_Tabs.cxx
+++ b/src/Fl_Tabs.cxx
@@ -178,7 +178,11 @@ int Fl_Tabs::handle(int event) {
Fl::focus(this);
redraw_tabs();
}
- if (o && value(o)) {
+ if (o && // Released on a tab and..
+ (value(o) || // tab changed value or..
+ (when()&(FL_WHEN_NOT_CHANGED)) // ..no change but WHEN_NOT_CHANGED set,
+ ) // handles FL_WHEN_RELEASE_ALWAYS too.
+ ) {
Fl_Widget_Tracker wp(o);
set_changed();
do_callback();