From 0a5b7239d432dd9b2d13534d61edb7785c8dbf66 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 28 Jul 2005 22:56:00 +0000 Subject: [PATCH] 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 --- CHANGES | 1 + src/Fl_File_Input.cxx | 1 + 2 files changed, 2 insertions(+) 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