summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp
diff options
context:
space:
mode:
authorDaniel Giurcanu <gdanielgwork@googlemail.com>2013-12-17 12:30:02 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-12-18 20:29:07 +0100
commit1e44ff671e3e4f82f0835da6ec7558cfc2a7c4a6 (patch)
treebfbd26ed0f1afd5b397da39a51cc918777ad7480 /src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp
parentc8d696eee7d26cb78a75f1476b7ac1b0c2c8f3c5 (diff)
Fix [Linux]/[Linuxfb] screen initialization.
For the linuxfb platform the screen was registered before its geometry was calculated resulting that the qpa controller will deal with a screen instance that has geometry of QRect(0,0,1,1) . This masks pretty much all the painting and the input. The fix is to call screen init before registering the screen instance to the qpa controller. Change-Id: If84daca6587dc368301b578cdbf7b2a65a56a5b5 Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp')
-rw-r--r--src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp b/src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp
index 977df8abd0..53f48d5480 100644
--- a/src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp
+++ b/src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp
@@ -57,7 +57,6 @@ QLinuxFbIntegration::QLinuxFbIntegration(const QStringList &paramList)
: m_fontDb(new QGenericUnixFontDatabase())
{
m_primaryScreen = new QLinuxFbScreen(paramList);
- screenAdded(m_primaryScreen);
}
QLinuxFbIntegration::~QLinuxFbIntegration()
@@ -67,7 +66,9 @@ QLinuxFbIntegration::~QLinuxFbIntegration()
void QLinuxFbIntegration::initialize()
{
- if (!m_primaryScreen->initialize())
+ if (m_primaryScreen->initialize())
+ screenAdded(m_primaryScreen);
+ else
qWarning("linuxfb: Failed to initialize screen");
}