summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2005-07-28 22:56:00 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2005-07-28 22:56:00 +0000
commit0a5b7239d432dd9b2d13534d61edb7785c8dbf66 (patch)
tree86e362137526e1e6484b5945c3daaf672ef7aca8
parent0af617b641559380c55335ec9b0368103ac78b51 (diff)
Fix redraw problem with Fl_File_Input (STR #958)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4459 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--CHANGES1
-rw-r--r--src/Fl_File_Input.cxx1
2 files changed, 2 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index ad7f0928e..04814723e 100644
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,7 @@ CHANGES IN FLTK 1.1.7
- Documentation fixes (STR #648, STR #692, STR #730, STR
#744, STR #745, STR #942)
+ - Fl_File_Input could draw in the wrong window (STR #958)
- WIN32: Internal WM_PAINT message now ignored (STR #831)
- Added Windows support for Fl_Window::xclass() (STR #848)
- Floating point input field allows characters from
diff --git a/src/Fl_File_Input.cxx b/src/Fl_File_Input.cxx
index 9472770c4..b8ec08548 100644
--- a/src/Fl_File_Input.cxx
+++ b/src/Fl_File_Input.cxx
@@ -238,6 +238,7 @@ Fl_File_Input::handle_button(int event) // I - Event
if (event == FL_RELEASE) pressed_ = -1;
else pressed_ = (short)i;
+ window()->make_current();
draw_buttons();
// Return immediately if the user is clicking on the last button or