@@ -245,6 +245,7 @@ FocusScope {
246 InputMethod {
246 InputMethod {
247 id: inputMethod
247 id: inputMethod
248+ anchors.fill: parent
250 Connections {
251 Connections {
@@ -258,11 +259,11 @@ FocusScope {
260 onSurfaceDestroyed: {
261 onSurfaceDestroyed: {
261− var orphan = !surface.parent;
262 if (inputMethod.surface == surface) {
262 if (inputMethod.surface == surface) {
263− inputMethod.removeSurface(surface);
263+ inputMethod.surface = null;
264+ surface.parent = null;
265− if (orphan) {
266+ if (!surface.parent) {
266 // there's no one displaying it. delete it right away
267 // there's no one displaying it. delete it right away
267 surface.release();
268 surface.release();