From 65313ab37780191c5aacd88f246aec6f8d839543 Mon Sep 17 00:00:00 2001 From: Tom Cooksey Date: Wed, 17 Mar 2010 10:57:57 +0100 Subject: Make WA_TranslucentBackground work with QX11GLWindowSurface Reviewed-By: TrustMe --- src/opengl/qwindowsurface_x11gl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/opengl/qwindowsurface_x11gl.cpp b/src/opengl/qwindowsurface_x11gl.cpp index 27b91ba..c6897d5 100644 --- a/src/opengl/qwindowsurface_x11gl.cpp +++ b/src/opengl/qwindowsurface_x11gl.cpp @@ -113,6 +113,8 @@ void QX11GLWindowSurface::setGeometry(const QRect &rect) QX11GLPixmapData *pd = new QX11GLPixmapData; pd->resize(newSize.width(), newSize.height()); m_backBuffer = QPixmap(pd); + if (window()->testAttribute(Qt::WA_TranslucentBackground)) + m_backBuffer.fill(Qt::transparent); } // if (gc) -- cgit v0.12