From a0f12e8eaf1294b6339316c4842480e965987d5c Mon Sep 17 00:00:00 2001 From: rewine Date: Fri, 12 Jan 2024 16:00:37 +0800 Subject: [PATCH] fix: greeter maybe not change when cursor in muitoutput Previous change: https://github.com/linuxdeepin/treeland/pull/102 --- src/treeland/quick/qml/Main.qml | 8 ++++++++ 1 file changed, 8 insertions(+) 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: {