@@ -773,6 +773,7 @@ Rectangle {
773 loadShell("phone");
773 loadShell("phone");
774 swipeAwayGreeter();
774 swipeAwayGreeter();
775 var item = findChild(shell, "inputMethod");
775 var item = findChild(shell, "inputMethod");
776+ tryCompareFunction(function() { return !!SurfaceManager.inputMethodSurface; }, true);
776 var surface = SurfaceManager.inputMethodSurface;
777 var surface = SurfaceManager.inputMethodSurface;
778 surface.setState(Mir.MinimizedState);
779 surface.setState(Mir.MinimizedState);