diff --git a/src/wayland_server.cpp b/src/wayland_server.cpp index 0fc68b2acd..6d9b40dc79 100644 --- a/src/wayland_server.cpp +++ b/src/wayland_server.cpp @@ -276,7 +276,7 @@ void WaylandServer::initPlatform() connect(kwinApp()->platform(), &Platform::outputDisabled, this, &WaylandServer::handleOutputDisabled); connect(kwinApp()->platform(), &Platform::primaryOutputChanged, this, [this] (AbstractOutput *primaryOutput) { - m_primary->setPrimaryOutput(primaryOutput ? primaryOutput->name() : ""); + m_primary->setPrimaryOutput(primaryOutput ? primaryOutput->name() : QString()); }); if (auto primaryOutput = kwinApp()->platform()->primaryOutput()) { m_primary->setPrimaryOutput(primaryOutput->name());