Bug 618561 - Speedup painting on maemo6 r=dougt a=approval2.0
authorOleg Romashin <romaxa@gmail.com>
Tue, 04 Jan 2011 17:37:27 +0200
changeset 59839 e55110b28ba56b87383ba4c82cd6f7ee36711b1a
parent 59838 88a95c3e9373ed3d06bf8afa3d68752577d6ee07
child 59840 f09c19a9fff99610398a29229406e1440bd8e830
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersdougt, approval2.0
bugs618561
milestone2.0b9pre
Bug 618561 - Speedup painting on maemo6 r=dougt a=approval2.0
widget/src/qt/nsWindow.cpp
--- a/widget/src/qt/nsWindow.cpp
+++ b/widget/src/qt/nsWindow.cpp
@@ -2585,16 +2585,21 @@ nsWindow::createQWidget(MozQWidget *pare
 #endif
         newView->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
         newView->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
 
 #if (QT_VERSION >= QT_VERSION_CHECK(4, 6, 0))
         // Top level widget is just container, and should not be painted
         widget->setFlag(QGraphicsItem::ItemHasNoContents);
 #endif
+
+#ifdef MOZ_X11
+        XSetWindowBackgroundPixmap(QX11Info::display(),
+                                   newView->effectiveWinId(), None);
+#endif
     } else if (eWindowType_dialog == mWindowType && parent)
         parent->scene()->addItem(widget);
 
     if (mWindowType == eWindowType_popup) {
         widget->setZValue(100);
 
         // XXX is this needed for Qt?
         // gdk does not automatically set the cursor for "temporary"