on xenial help sign in
TLWM: 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.

commit5d81cd757dda67ea46bc3ab23cf440a308d9f640 authorGerry Boland <gerry.boland@canonical.com> dateTue 7 Mar 2017, 13:42 (10 years ago) parent16aeee9
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);