disabled focus handling for ColorWidget (reduces draws)

This commit is contained in:
thrust26 2021-04-29 10:17:04 +02:00
parent f37f841750
commit 47acf30fba
2 changed files with 3 additions and 1 deletions

View File

@ -31,7 +31,7 @@ ColorWidget::ColorWidget(GuiObject* boss, const GUI::Font& font,
_framed{framed},
_cmd{cmd}
{
_flags = Widget::FLAG_ENABLED | Widget::FLAG_CLEARBG | Widget::FLAG_RETAIN_FOCUS;
_flags = Widget::FLAG_ENABLED | Widget::FLAG_CLEARBG;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View File

@ -45,6 +45,8 @@ class ColorWidget : public Widget, public CommandSender
void setCrossed(bool enable);
protected:
void handleMouseEntered() override { }
void handleMouseLeft() override { }
void drawWidget(bool hilite) override;
protected: