[framebuffer_backend] Delay VirtualTerminal::init till we have logind control

This commit is contained in:
Martin Gräßlin 2015-04-08 15:12:06 +02:00
parent f135d92c00
commit da3f7914f7

View file

@ -76,12 +76,12 @@ void FramebufferBackend::init()
} else {
connect(logind, &LogindIntegration::connectedChanged, this, takeControl);
}
auto v = VirtualTerminal::create(this);
v->init();
VirtualTerminal::create(this);
}
void FramebufferBackend::openFrameBuffer()
{
VirtualTerminal::self()->init();
int fd = LogindIntegration::self()->takeDevice(m_device.toUtf8().constData());
if (fd < 0) {
qCWarning(KWIN_CORE) << "Failed to open frame buffer device through logind, trying without";