summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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