revert non working changes
[enigma2.git] / lib / gui / ewidget.cpp
index e05042965b5cfaad310bdf63b1aa68c16104dca2..30602c558ca238acc6c59c9a3d648cb2e2237f6c 100644 (file)
@@ -341,8 +341,13 @@ int eWidget::event(int event, void *data, void *data2)
                        }
                } else
                {
-                       if (m_have_background_color)
-                               painter.setBackgroundColor(m_background_color);
+                       eWidget *w = this;
+                       
+                       while (w && !w->m_have_background_color)
+                               w = w->m_parent;
+
+                       if (w)
+                               painter.setBackgroundColor(w->m_background_color);
                }
                break;
        }