summaryrefslogtreecommitdiff
path: root/src/plugins/platforms/directfb
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2012-05-16 09:31:35 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-22 05:09:07 +0200
commit6956ce0912b6f0f2357b260596a1fc176e3af4bf (patch)
tree28c18d954ef0635bf180a9dde0e0bfaf4081040d /src/plugins/platforms/directfb
parent707fc2bb00a8b2852705a3fd76426d02b5204ca4 (diff)
downloadqtbase-6956ce0912b6f0f2357b260596a1fc176e3af4bf.tar.gz
directfb: Expose the window when it becomes visible
This change is required to make DirectFB windows appear on the screen again. Change-Id: Ib00d3fa597bc23879b5646bddd6cbb5c627b0edf Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
Diffstat (limited to 'src/plugins/platforms/directfb')
-rw-r--r--src/plugins/platforms/directfb/qdirectfbwindow.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/platforms/directfb/qdirectfbwindow.cpp b/src/plugins/platforms/directfb/qdirectfbwindow.cpp
index a830f1e3db..c46694c66f 100644
--- a/src/plugins/platforms/directfb/qdirectfbwindow.cpp
+++ b/src/plugins/platforms/directfb/qdirectfbwindow.cpp
@@ -44,6 +44,7 @@
#include "qdirectfbinput.h"
#include "qdirectfbscreen.h"
+#include <QtGui/QWindowSystemInterface>
#include <directfb.h>
@@ -87,8 +88,6 @@ QDirectFbWindow::QDirectFbWindow(QWindow *tlw, QDirectFbInput *inputhandler)
m_dfbWindow->SetOpacity(m_dfbWindow.data(), 0xff);
- setVisible(window()->isVisible());
-
m_inputHandler->addWindow(m_dfbWindow.data(), tlw);
}
@@ -137,6 +136,9 @@ void QDirectFbWindow::setVisible(bool visible)
displayLayer->GetConfiguration(displayLayer.data(), &config);
m_dfbWindow->MoveTo(m_dfbWindow.data(), config. width + 1, config.height + 1);
}
+
+ if (window()->isTopLevel() && visible)
+ QWindowSystemInterface::handleExposeEvent(window(), window()->geometry());
}
Qt::WindowFlags QDirectFbWindow::setWindowFlags(Qt::WindowFlags flags)