Commit 634e0322 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Remove redundant initializeX11() in Compositor

Compositor::setupStart() already calls initializeX11(). This fixes
BadAccess warning on startup.

CCBUG: 455167
parent 1e62fe99
Pipeline #191069 passed with stage
in 15 minutes and 15 seconds
......@@ -159,6 +159,9 @@ Compositor::Compositor(QObject *workspace)
},
Qt::QueuedConnection);
connect(kwinApp(), &Application::x11ConnectionChanged, this, &Compositor::initializeX11);
connect(kwinApp(), &Application::x11ConnectionAboutToBeDestroyed, this, &Compositor::cleanupX11);
// register DBus
new CompositorDBusInterface(this);
FTraceLogger::create();
......@@ -358,12 +361,6 @@ void Compositor::cleanupX11()
void Compositor::startupWithWorkspace()
{
connect(kwinApp(), &Application::x11ConnectionChanged,
this, &Compositor::initializeX11, Qt::UniqueConnection);
connect(kwinApp(), &Application::x11ConnectionAboutToBeDestroyed,
this, &Compositor::cleanupX11, Qt::UniqueConnection);
initializeX11();
Q_ASSERT(m_scene);
m_scene->initialize();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment