Skip to content

Commit

Permalink
fix: greeter maybe not change when cursor in muitoutput
Browse files Browse the repository at this point in the history
Previous change: #102
  • Loading branch information
wineee authored and justforlxz committed Jan 12, 2024
1 parent 5e739d6 commit a0f12e8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/treeland/quick/qml/Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit a0f12e8

Please sign in to comment.