Fixed handle according to example from QCairo
authorromashin
Sat, 19 Apr 2008 18:34:14 +0300
changeset 16789 3dc220c1618e1a2c7d5a45f7dba52bddaf5e6bed
parent 16788 4af0049de9cea59d9379c4bed5d7abab7c8a4f8f
child 16790 d425cc370b0d91c50f3f9d2478c3bf402acd4578
push id1298
push userpavlov@mozilla.com
push dateSun, 17 Aug 2008 05:03:09 +0000
treeherderautoland@4a506fa751d8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone2.0a1pre
Fixed handle according to example from QCairo
widget/src/qt/nsWindow.cpp
--- a/widget/src/qt/nsWindow.cpp
+++ b/widget/src/qt/nsWindow.cpp
@@ -140,17 +140,17 @@ nsWindow::GetThebesSurface()
         // Owen Taylor says this is the right thing to do!
         width = PR_MIN(32767, height);
         height = PR_MIN(32767, width);
 
         if (!gfxPlatform::UseGlitz()) {
             qDebug("QT_WIDGET NOT SURE: Func:%s::%d, [%ix%i]\n", __PRETTY_FUNCTION__, __LINE__, width, height);
             mThebesSurface = new gfxXlibSurface
             (mWidget->x11Info().display(),
-             (Drawable)mWidget->x11Info().appRootWindow(),
+            (Drawable)mWidget->handle(),
              static_cast<Visual*>(mWidget->x11Info().visual()),
              gfxIntSize(width, height));
 
             // if the surface creation is reporting an error, then
             // we don't have a surface to give back
             if (mThebesSurface && mThebesSurface->CairoStatus() != 0)
                 mThebesSurface = nsnull;
         } else {