aboutsummaryrefslogtreecommitdiff
path: root/dw
diff options
context:
space:
mode:
Diffstat (limited to 'dw')
-rw-r--r--dw/fltkcomplexbutton.cc9
-rw-r--r--dw/fltkui.cc2
2 files changed, 2 insertions, 9 deletions
diff --git a/dw/fltkcomplexbutton.cc b/dw/fltkcomplexbutton.cc
index 40c0a55d..2d7af185 100644
--- a/dw/fltkcomplexbutton.cc
+++ b/dw/fltkcomplexbutton.cc
@@ -96,14 +96,7 @@ int ComplexButton::handle(int event) {
case FL_FOCUS : /* FALLTHROUGH */
case FL_UNFOCUS :
if (Fl::visible_focus()) {
- if (box() == FL_NO_BOX) {
- // Widgets with the FL_NO_BOX boxtype need a parent to
- // redraw, since it is responsible for redrawing the
- // background...
- int X = x() > 0 ? x() - 1 : 0;
- int Y = y() > 0 ? y() - 1 : 0;
- if (window()) window()->damage(FL_DAMAGE_ALL, X, Y, w() + 2, h() + 2);
- } else redraw();
+ redraw();
return 1;
} else return 0;
case FL_KEYBOARD :
diff --git a/dw/fltkui.cc b/dw/fltkui.cc
index 064176de..4c3415c7 100644
--- a/dw/fltkui.cc
+++ b/dw/fltkui.cc
@@ -532,7 +532,7 @@ Fl_Widget *FltkComplexButtonResource::createNewWidget (core::Allocation
button->callback (widgetCallback, this);
button->when (FL_WHEN_RELEASE);
if (!relief)
- button->box(FL_FLAT_BOX);
+ button->box(FL_NO_BOX);
flatView = new FltkFlatView (allocation->x + reliefXThickness (),
allocation->y + reliefYThickness (),