]> Dogcows Code - chaz/openbox/blobdiff - otk/widget.cc
fix booge bug that makes widgets not change their background when changing from a...
[chaz/openbox] / otk / widget.cc
index 9cc822aea8683ff98b41fdd606d8eca6d194ccbf..161e3e71d6523c5b014136944bc2937c183895de 100644 (file)
@@ -248,13 +248,12 @@ void OtkWidget::render(void)
 {
   if (!_texture) return;
 
-  printf("rendering %lx\n", _texture);
-
   _bg_pixmap = _texture->render(_rect.width(), _rect.height(), _bg_pixmap);
 
-  if (_bg_pixmap)
+  if (_bg_pixmap) {
     XSetWindowBackgroundPixmap(otk::OBDisplay::display, _window, _bg_pixmap);
-  else {
+    _bg_pixel = None;
+  } else {
     unsigned int pix = _texture->color().pixel();
     if (pix != _bg_pixel) {
       _bg_pixel = pix;
@@ -388,7 +387,6 @@ void OtkWidget::adjustVert(void)
 void OtkWidget::update(void)
 {
   if (_dirty) {
-    printf("widget dirty, redrawing\n");
     adjust();
     render();
     XClearWindow(OBDisplay::display, _window);
This page took 0.024977 seconds and 4 git commands to generate.