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>
This commit is contained in:
parent
707fc2bb00
commit
6956ce0912
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user