[framebuffer_backend] Delay VirtualTerminal::init till we have logind control
This commit is contained in:
parent
f135d92c00
commit
da3f7914f7
1 changed files with 2 additions and 2 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue