]> Dogcows Code - chaz/openbox/blobdiff - src/labelwidget.cc
revert def_motion
[chaz/openbox] / src / labelwidget.cc
index 5a33cf3dd0bfdf78e857d74ee587504b8c78ee76..4fd48b59ab3275f259fe292cdbdb8b6fd034dd38 100644 (file)
@@ -72,7 +72,11 @@ void OBLabelWidget::unfocus()
 
 void OBLabelWidget::update()
 {
-  if (_dirty) {
+  bool draw = _dirty;
+
+  OtkWidget::update();
+
+  if (draw) {
     std::string t = _text;
     int x = _sidemargin;    // x coord for the text
 
@@ -102,17 +106,14 @@ void OBLabelWidget::update()
       }
     }
 
-    OtkWidget::update();
-
     _font->drawString(_xftdraw, x, 0, *_text_color, t);
-  } else
-    OtkWidget::update();
+  }
 }
 
 
 void OBLabelWidget::adjust()
 {
-  // XXX: adjust shit
+  // nothing to adjust. no children.
 }
 
 }
This page took 0.024226 seconds and 4 git commands to generate.