diff --git a/src/treeland/quick/qml/Main.qml b/src/treeland/quick/qml/Main.qml index 55deae0d..b76b3d10 100644 --- a/src/treeland/quick/qml/Main.qml +++ b/src/treeland/quick/qml/Main.qml @@ -300,6 +300,14 @@ Item { onLastActiveCursorItemChanged: { if (lastActiveCursorItem != null) renderWindow.activeOutputDelegate = outputDelegate + else if (renderWindow.activeOutputDelegate === outputDelegate) { + for (const output of QmlHelper.layout.outputs) { + if (output.lastActiveCursorItem) { + renderWindow.activeOutputDelegate = output + break + } + } + } } Component.onCompleted: {