Haven't verified yet, but the problem seems to be that the ubuntu::application::mir::client:Window class destroys the InputContext before destroying the SurfacePtr, i.e., the order of the two variables is incorrect in the class.
Haven't verified yet, but the problem seems to be that the ubuntu: :application: :mir::client: Window class destroys the InputContext before destroying the SurfacePtr, i.e., the order of the two variables is incorrect in the class.