summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorJeremy Katz <jeremy.katz@nokia.com>2009-09-23 15:29:10 (GMT)
committerJeremy Katz <jeremy.katz@nokia.com>2009-09-23 15:32:45 (GMT)
commit74ba43ee9b82f46d07d4055af4e9ac7706701cea (patch)
tree4e7fbe2fdf3a2ecccf53f4883c90d1f0360d2446 /src/gui
parentf4c948dde1159b3a04a507781f1e0f89bd4b3b37 (diff)
downloadQt-74ba43ee9b82f46d07d4055af4e9ac7706701cea.zip
Qt-74ba43ee9b82f46d07d4055af4e9ac7706701cea.tar.gz
Qt-74ba43ee9b82f46d07d4055af4e9ac7706701cea.tar.bz2
Don't disable painting with multiple screens and VNC
Task-number: QTBUG-4473 Reviewed-by: Paul
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/embedded/qscreenmulti_qws.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/embedded/qscreenmulti_qws.cpp b/src/gui/embedded/qscreenmulti_qws.cpp
index beeb6aa..3a23ca2 100644
--- a/src/gui/embedded/qscreenmulti_qws.cpp
+++ b/src/gui/embedded/qscreenmulti_qws.cpp
@@ -46,6 +46,7 @@
#include <qlist.h>
#include <qstringlist.h>
#include <qwidget.h>
+#include <qdebug.h>
QT_BEGIN_NAMESPACE
@@ -230,6 +231,9 @@ bool QMultiScreen::connect(const QString &displaySpec)
QStringList specs = dSpec.split(QLatin1Char(' '), QString::SkipEmptyParts);
foreach (QString spec, specs) {
const int id = getDisplayId(spec);
+ if (spec.startsWith("vnc:", Qt::CaseInsensitive)) {
+ spec.append(":noDisablePainting");
+ }
const QPoint offset = filterDisplayOffset(spec);
QScreen *s = qt_get_screen(id, spec.toLatin1().constData());
s->setOffset(offset);