Skip to content

Your Android phone and your Windows PC, working as one. Local-first, end-to-end encrypted, no account.

fix(desktop): typing works in the mirror window after Try again

Beebef5d7664fcd
diff --git a/desktop/app/qml/MirrorWindow.qml b/desktop/app/qml/MirrorWindow.qml
index 7a3d16c..0eeedf0 100644
--- a/desktop/app/qml/MirrorWindow.qml
+++ b/desktop/app/qml/MirrorWindow.qml
@@ -60,7 +60,13 @@ Window {
onHeightChanged: if (info.app && sized && readyForResize) resizeTimer.restart()
onXChanged: if (info.app && sized && readyForResize) moveTimer.restart()
onYChanged: if (info.app && sized && readyForResize) moveTimer.restart()
- onPhaseChanged: if (phase === "showing" && info.app && sized) resizeTimer.restart()
+ onPhaseChanged: {
+ if (phase === "showing" && info.app && sized)
+ resizeTimer.restart()
+ // Typing goes to the picture again, not to the hidden Try again button.
+ if (phase === "showing")
+ video.forceActiveFocus()
+ }
onActiveChanged: if (win.active) Mirror.syncClipboardOnFocus(win.mirrorKey)
onFrameChanged: {