linuxfb: let the window register itself with the screen
This moves the addWindow call to the platformsupport code. Change-Id: Icf9175ae86ad880248036362e9c5f40124744272 Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com> Reviewed-by: Thomas Senyk <thomas.senyk@nokia.com> Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
This commit is contained in:
parent
b47bded2f3
commit
c2b9c0ec89
@ -51,6 +51,8 @@ QFbWindow::QFbWindow(QWindow *window)
|
||||
{
|
||||
static QAtomicInt winIdGenerator(1);
|
||||
windowId = winIdGenerator.fetchAndAddRelaxed(1);
|
||||
|
||||
platformScreen()->addWindow(window);
|
||||
}
|
||||
|
||||
QFbWindow::~QFbWindow()
|
||||
|
@ -89,9 +89,7 @@ QPlatformBackingStore *QLinuxFbIntegration::createPlatformBackingStore(QWindow *
|
||||
|
||||
QPlatformWindow *QLinuxFbIntegration::createPlatformWindow(QWindow *window) const
|
||||
{
|
||||
QFbWindow *w = new QFbWindow(window);
|
||||
m_primaryScreen->addWindow(w);
|
||||
return w;
|
||||
return new QFbWindow(window);
|
||||
}
|
||||
|
||||
QAbstractEventDispatcher *QLinuxFbIntegration::guiThreadEventDispatcher() const
|
||||
|
Loading…
Reference in New Issue
Block a user