X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=otk%2Ffocuslabel.cc;h=ea4e9ca20e7a88ab0c5dd8bc7d4d0fd8a2afd5b2;hb=34a9f87ed27b44d5f0337477605fc22306802eac;hp=98fe541718338764dac073a797920df9ad9624d4;hpb=bd06e8961d43dfbfac0472409e55513f1fd86bf8;p=chaz%2Fopenbox diff --git a/otk/focuslabel.cc b/otk/focuslabel.cc index 98fe5417..ea4e9ca2 100644 --- a/otk/focuslabel.cc +++ b/otk/focuslabel.cc @@ -1,10 +1,9 @@ -#include #include "focuslabel.hh" namespace otk { OtkFocusLabel::OtkFocusLabel(OtkWidget *parent) - : OtkFocusWidget(parent), _text(""), _dirty(false) + : OtkFocusWidget(parent), _text("") { setTexture(getStyle()->getLabelFocus()); setUnfocusTexture(getStyle()->getLabelUnfocus()); @@ -56,21 +55,6 @@ void OtkFocusLabel::update(void) ft.drawString(getWindow(), x, bevel, *text_color, t); } else OtkFocusWidget::update(); - - _dirty = false; -} - -int OtkFocusLabel::exposeHandler(const XExposeEvent &e) -{ - _dirty = true; - return OtkFocusWidget::exposeHandler(e); -} - -int OtkFocusLabel::configureHandler(const XConfigureEvent &e) -{ - if (!(e.width == width() && e.height == height())) - _dirty = true; - return OtkFocusWidget::configureHandler(e); } }