]> Dogcows Code - chaz/openbox/blobdiff - otk/focuslabel.cc
add an OBRootWindow class that watches events/properties on root windows
[chaz/openbox] / otk / focuslabel.cc
index 98fe541718338764dac073a797920df9ad9624d4..e75a1d33aa6d3fa5cede0c974cd12a208e03f5c8 100644 (file)
@@ -1,10 +1,15 @@
-#include <iostream>
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
+
+#ifdef HAVE_CONFIG_H
+# include "../config.h"
+#endif
+
 #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 +61,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);
 }
 
 }
This page took 0.020077 seconds and 4 git commands to generate.