X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Ffocuswidget.cc;h=b8e18d7875596580749836939224880293765bd4;hb=67fbe8354f27386235e0c8dc57bd036e34a4fe5e;hp=9af8b37d48ce9c520b9c348f37a753a585678bbe;hpb=d8d9b42777ace234f3471918e1210062578f8188;p=chaz%2Fopenbox diff --git a/otk/focuswidget.cc b/otk/focuswidget.cc index 9af8b37d..b8e18d78 100644 --- a/otk/focuswidget.cc +++ b/otk/focuswidget.cc @@ -20,7 +20,7 @@ FocusWidget::~FocusWidget() { } -#include + void FocusWidget::focus(void) { if (_focused) @@ -53,9 +53,11 @@ void FocusWidget::setTexture(RenderTexture *texture) { Widget::setTexture(texture); _focus_texture = texture; + if (!_focused) + Widget::setTexture(_unfocus_texture); } -void FocusWidget::setBorderColor(const Color *color) +void FocusWidget::setBorderColor(const RenderColor *color) { Widget::setBorderColor(color); _focus_bcolor = color;