Fixed qml-compositor failing on XComposite EGL / GLX.
authorSamuel Rødal <samuel.rodal@nokia.com>
Wed, 14 Sep 2011 15:56:50 +0000 (17:56 +0200)
committerSamuel Rødal <samuel.rodal@nokia.com>
Wed, 14 Sep 2011 15:56:50 +0000 (17:56 +0200)
We also need to make sure that the QWindow has actually been created at
this point, before creating a child window to be used as the fake root
for composited windows.

src/qt-compositor/hardware_integration/xcomposite_share/xcompositehandler.cpp

index ef935e6..9d8e86d 100644 (file)
@@ -10,6 +10,8 @@ XCompositeHandler::XCompositeHandler(Wayland::Compositor *compositor, Display *d
     , mwindow(window)
     , mDisplay(display)
 {
+    mCompositor->window()->create();
+
     mFakeRootWidget = new QWindow(mCompositor->window());
     mFakeRootWidget->setGeometry(QRect(-1,-1,1,1));
     mFakeRootWidget->create();