From dc0ab1d06c3db76e8c1fd311b95abee40808864b Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 20 Feb 2008 17:59:13 +0000 Subject: STR 1719: fixed inconsistencies with FL_WHEN_NOT_CHANGED git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6031 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Input.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/Fl_Input.cxx') diff --git a/src/Fl_Input.cxx b/src/Fl_Input.cxx index ffd8bf230..326b1fd66 100644 --- a/src/Fl_Input.cxx +++ b/src/Fl_Input.cxx @@ -409,9 +409,10 @@ int Fl_Input::handle(int event) { // user double or triple clicked to select word or whole text copy(0); } - // For output widgets, do the callback so the app knows the user - // did something with the mouse... - if (readonly()) do_callback(); + + // perform the RELEASE callback + if (when() & FL_WHEN_RELEASE) + maybe_do_callback(); return 1; case FL_DND_ENTER: -- cgit v1.2.3