From b500645a5e3ae810e01c3062afea7bce77d83cae Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 16 Jul 2005 08:25:06 +0000 Subject: Added redraw on focus vi FL_PUSH for roller, browser and slider git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4425 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Browser_.cxx | 5 ++++- src/Fl_Roller.cxx | 5 ++++- src/Fl_Slider.cxx | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Fl_Browser_.cxx b/src/Fl_Browser_.cxx index 9191a37cb..dc0406ccb 100644 --- a/src/Fl_Browser_.cxx +++ b/src/Fl_Browser_.cxx @@ -605,7 +605,10 @@ int Fl_Browser_::handle(int event) { switch (event) { case FL_PUSH: if (!Fl::event_inside(X, Y, W, H)) return 0; - if (Fl::visible_focus()) Fl::focus(this); + if (Fl::visible_focus()) { + Fl::focus(this); + redraw(); + } my = py = Fl::event_y(); change = 0; if (type() == FL_NORMAL_BROWSER || !top_) diff --git a/src/Fl_Roller.cxx b/src/Fl_Roller.cxx index a55344a43..9a4947ef6 100644 --- a/src/Fl_Roller.cxx +++ b/src/Fl_Roller.cxx @@ -37,7 +37,10 @@ int Fl_Roller::handle(int event) { int newpos = horizontal() ? Fl::event_x() : Fl::event_y(); switch (event) { case FL_PUSH: - if (Fl::visible_focus()) Fl::focus(this); + if (Fl::visible_focus()) { + Fl::focus(this); + redraw(); + } handle_push(); ipos = newpos; return 1; diff --git a/src/Fl_Slider.cxx b/src/Fl_Slider.cxx index f83c673df..0b58e924f 100644 --- a/src/Fl_Slider.cxx +++ b/src/Fl_Slider.cxx @@ -278,7 +278,10 @@ int Fl_Slider::handle(int event, int X, int Y, int W, int H) { } int Fl_Slider::handle(int event) { - if (event == FL_PUSH && Fl::visible_focus()) Fl::focus(this); + if (event == FL_PUSH && Fl::visible_focus()) { + Fl::focus(this); + redraw(); + } return handle(event, x()+Fl::box_dx(box()), -- cgit v1.2.3