@@ -274,7 +274,10 @@ AbstractStage {
274274 value: appDelegate.requestedY -
275275 Math.min(appDelegate.requestedY - PanelState.panelHeight,
276276 Math.max(0, UbuntuKeyboardInfo.height - (appContainer.height - (appDelegate.requestedY + appDelegate.height))))
277− when: appDelegate.focus && UbuntuKeyboardInfo.height > 0
277+ when: appDelegate.focus
278+ && SurfaceManager.inputMethodSurface.state != Mir.HiddenState
279+ && SurfaceManager.inputMethodSurface.state != Mir.MinimizedState
280+
278281 }
279282
280283 width: decoratedWindow.width