diff options
author | corvid <corvid@lavabit.com> | 2012-12-10 18:32:55 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2012-12-10 18:32:55 +0000 |
commit | 2421b5df238b6c3ec41b433d23299e53f0ffe800 (patch) | |
tree | 3182629b1ebe95254bd683bc7c214db14663185f | |
parent | af043125acd889784b8f9c9d08c411d20e42e98f (diff) |
make focus box for image inputs work
-rw-r--r-- | dw/fltkcomplexbutton.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dw/fltkcomplexbutton.cc b/dw/fltkcomplexbutton.cc index bbfe0b3b..40c0a55d 100644 --- a/dw/fltkcomplexbutton.cc +++ b/dw/fltkcomplexbutton.cc @@ -45,7 +45,6 @@ int ComplexButton::value(int v) { void ComplexButton::draw() { Fl_Color col = value() ? selection_color() : color(); draw_box(value() ? (down_box()?down_box():fl_down(box())) : box(), col); - if (Fl::focus() == this) draw_focus(); // ComplexButton is a Group; draw its children for (int i = children () - 1; i >= 0; i--) { @@ -53,6 +52,7 @@ void ComplexButton::draw() { child (i)->position(x()+(w()-child(i)->w())/2,y()+(h()-child(i)->h())/2); draw_child (*child (i)); } + if (Fl::focus() == this) draw_focus(); } int ComplexButton::handle(int event) { |