diff --git a/src/wayland_server.cpp b/src/wayland_server.cpp index fffae9a093..6100b660f6 100644 --- a/src/wayland_server.cpp +++ b/src/wayland_server.cpp @@ -693,7 +693,9 @@ int WaylandServer::createXWaylandConnection() m_xwaylandConnection->setScaleOverride(kwinApp()->xwaylandScale()); connect(kwinApp(), &Application::xwaylandScaleChanged, m_xwaylandConnection, [this]() { - m_xwaylandConnection->setScaleOverride(kwinApp()->xwaylandScale()); + if (m_xwaylandConnection) { + m_xwaylandConnection->setScaleOverride(kwinApp()->xwaylandScale()); + } }); return socket.fd;