eglfs: Create input handlers only when screens are available

Some code may rely on the primary screen geometry for example.

Task-number: QTBUG-47002
Change-Id: I42fc1ccf0c1d91beb5d8e9691ac6ec4e7400e567
Reviewed-by: Louai Al-Khanji <louai.al-khanji@theqtcompany.com>
bb10
Laszlo Agocs 2015-09-15 17:06:39 +02:00
parent eecc351c5d
commit 863dfb1541
1 changed files with 4 additions and 3 deletions

View File

@ -129,13 +129,14 @@ void QEglFSIntegration::initialize()
m_vtHandler.reset(new QFbVtHandler);
if (!m_disableInputHandlers)
createInputHandlers();
if (qt_egl_device_integration()->usesDefaultScreen())
addScreen(new QEglFSScreen(display()));
else
qt_egl_device_integration()->screenInit();
// Input code may rely on the screens, so do it only after the screen init.
if (!m_disableInputHandlers)
createInputHandlers();
}
void QEglFSIntegration::destroy()