@@ -275,6 +275,7 @@ AbstractStage {
275 Math.min(appDelegate.requestedY - PanelState.panelHeight,
275 Math.min(appDelegate.requestedY - PanelState.panelHeight,
276 Math.max(0, UbuntuKeyboardInfo.height - (appContainer.height - (appDelegate.requestedY + appDelegate.height))))
276 Math.max(0, UbuntuKeyboardInfo.height - (appContainer.height - (appDelegate.requestedY + appDelegate.height))))
277 when: appDelegate.focus
277 when: appDelegate.focus
278+ && SurfaceManager.inputMethodSurface
278 && SurfaceManager.inputMethodSurface.state != Mir.HiddenState
279 && SurfaceManager.inputMethodSurface.state != Mir.HiddenState
279 && SurfaceManager.inputMethodSurface.state != Mir.MinimizedState
280 && SurfaceManager.inputMethodSurface.state != Mir.MinimizedState