diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-08-29 22:50:07 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-08-29 22:50:12 +0200 |
| commit | b5a1da961200e870a28f09b2fba4197e73c9935d (patch) | |
| tree | c18917f0dea7f8203d020d60a2ff1d6c2cd12ff6 /fluid/Fl_Widget_Type.cxx | |
| parent | be657471e761462d91c62e8cd00519e5dbda82a0 (diff) | |
FLUID: minor fixes
Diffstat (limited to 'fluid/Fl_Widget_Type.cxx')
| -rw-r--r-- | fluid/Fl_Widget_Type.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fluid/Fl_Widget_Type.cxx b/fluid/Fl_Widget_Type.cxx index 28c24939d..7418e65e1 100644 --- a/fluid/Fl_Widget_Type.cxx +++ b/fluid/Fl_Widget_Type.cxx @@ -405,7 +405,8 @@ void label_cb(Fl_Input* i, void *v) { undo_resume(); if (mod) set_modflag(1); } - if ( (Fl::event() == FL_HIDE) || (Fl::event() == FL_UNFOCUS) ) + int r = (int)Fl::callback_reason(); + if ( (r == FL_REASON_LOST_FOCUS) || (r == FL_REASON_ENTER_KEY) ) first_change = 1; } } @@ -2502,7 +2503,7 @@ void propagate_load(Fl_Group* g, void* v) { Fl_Widget*const* a = g->array(); for (int i=g->children(); i--;) { Fl_Widget* o = *a++; - o->do_callback(o,LOAD); + o->do_callback(o, LOAD, FL_REASON_USER); } } } |
