on xenial help sign in
TopLevelWindowModel: connect to the OSK surface to know when it goes away so we can clean up after it.

This ensures when setLive(false) is called on the OSK surface, onSurfaceDied is called which will unset it as the internal input method surface. (LP: #1670681) Approved by: Unity8 CI Bot

commitef2e52fc0e28f3dcf760042388570d7f753e7651 authorGerry Boland <gerry.boland@canonical.com> dateWed 8 Mar 2017, 09:48 (10 years ago) parent1e195995d81cd7
1 file changed+1
plugins/WindowManager/TopLevelWindowModel.cpp+1
plugins/WindowManager/TopLevelWindowModel.cpp+1
@@ -341,6 +341,7 @@ void TopLevelWindowModel::onSurfaceCreated(unityapi::MirSurfaceInterface *surfac
341341 });
342342 } else {
343343 if (surface->type() == Mir::InputMethodType) {
344+ connectSurface(surface);
344345 setInputMethodWindow(createWindow(surface));
345346 } else {
346347 auto *application = m_applicationManager->findApplicationWithSurface(surface);