@@ -83,7 +83,7 @@ void SurfaceManager::registerSurface(MirSurface *surface)
83 this->onStateRequested(surface, state);
83 this->onStateRequested(surface, state);
86− const QString persistentId = m_virtualKeyboard->persistentId();
86+ const QString persistentId = surface->persistentId();
87 connect(surface, &QObject::destroyed, this, [=]() {
87 connect(surface, &QObject::destroyed, this, [=]() {
88 this->onSurfaceDestroyed(surface, persistentId);
88 this->onSurfaceDestroyed(surface, persistentId);
@@ -225,7 +225,7 @@ void SurfaceManager::onStateRequested(MirSurface *surface, Mir::State state)
225 DEBUG_MSG("("<<surface<<","<<state<<") ended");
225 DEBUG_MSG("("<<surface<<","<<state<<") ended");
228−void SurfaceManager::onSurfaceDestroyed(const QString& persistentId, MirSurface *surface)
228+void SurfaceManager::onSurfaceDestroyed(MirSurface *surface, const QString& persistentId)
230 m_surfaces.removeAll(surface);
230 m_surfaces.removeAll(surface);
231 if (m_focusedSurface == surface) {
231 if (m_focusedSurface == surface) {