summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl.cpp
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2009-05-27 09:45:52 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2009-05-27 10:46:17 (GMT)
commit73e7d0cbed0261715f534d95f81055bf97ce4314 (patch)
treec47c09db97ea0feac9e6dad40ea2e68105abd2c2 /src/opengl/qgl.cpp
parent855022d6108f6b3c90832e742217c50550af717d (diff)
downloadQt-73e7d0cbed0261715f534d95f81055bf97ce4314.zip
Qt-73e7d0cbed0261715f534d95f81055bf97ce4314.tar.gz
Qt-73e7d0cbed0261715f534d95f81055bf97ce4314.tar.bz2
Make WA_TranslucentBackground work on QGLWidget for X11
This patch enables QGLWidget's to have an ARGB visual on X11, alowing GL rendering on semi-transparent windows. Reviewed-By: Trond
Diffstat (limited to 'src/opengl/qgl.cpp')
-rw-r--r--src/opengl/qgl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp
index 0be70d7..9626a3d 100644
--- a/src/opengl/qgl.cpp
+++ b/src/opengl/qgl.cpp
@@ -3306,7 +3306,7 @@ bool QGLWidget::event(QEvent *e)
glFinish();
doneCurrent();
} else if (e->type() == QEvent::ParentChange) {
- if (d->glcx->d_func()->screen != d->xinfo.screen()) {
+ if (d->glcx->d_func()->screen != d->xinfo.screen() || testAttribute(Qt::WA_TranslucentBackground)) {
setContext(new QGLContext(d->glcx->requestedFormat(), this));
// ### recreating the overlay isn't supported atm
}