summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Ehrlicher <Christian.Ehrlicher@rheinmetall.com>2010-10-25 08:11:26 (GMT)
committerSamuel Rødal <samuel.rodal@nokia.com>2010-10-25 11:01:25 (GMT)
commite935c5b45734a6aa91d59842d8514e18dcdd6f93 (patch)
tree6d125ca3fa947b2375e46b739138cdfe4512dede
parentd91a8f3a5dbcf3e4c4c0afb28463b25e192b00e4 (diff)
downloadQt-e935c5b45734a6aa91d59842d8514e18dcdd6f93.zip
Qt-e935c5b45734a6aa91d59842d8514e18dcdd6f93.tar.gz
Qt-e935c5b45734a6aa91d59842d8514e18dcdd6f93.tar.bz2
Fix for QTBUG-14497 - X11 error (X_CopyRect/BadMatch) when using a translucent widge in multi-screen environment
Merge-request: 865 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
-rw-r--r--src/gui/painting/qwindowsurface_x11.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/painting/qwindowsurface_x11.cpp b/src/gui/painting/qwindowsurface_x11.cpp
index cadf264..d7f54ea 100644
--- a/src/gui/painting/qwindowsurface_x11.cpp
+++ b/src/gui/painting/qwindowsurface_x11.cpp
@@ -149,6 +149,8 @@ void QX11WindowSurface::setGeometry(const QRect &rect)
return;
#ifndef QT_NO_XRENDER
if (d_ptr->translucentBackground) {
+ QPixmap::x11SetDefaultScreen(d_ptr->widget->x11Info().screen());
+
QX11PixmapData *data = new QX11PixmapData(QPixmapData::PixmapType);
data->xinfo = d_ptr->widget->x11Info();
data->resize(size.width(), size.height());