fix(workspace): potential fix for SIGSEGV caused by re-entrant incubation

This commit is contained in:
Lysec
2026-03-12 10:07:55 +01:00
parent 3cdd999664
commit d0b5052452
2 changed files with 4 additions and 6 deletions
+4 -3
View File
@@ -700,13 +700,14 @@ Item {
} }
} }
Component.onCompleted: updateWindows() // Deferred to avoid re-entrant incubation: when localWorkspaces.append()
onWorkspaceModelChanged: updateWindows() Component.onCompleted: Qt.callLater(updateWindows)
onWorkspaceModelChanged: Qt.callLater(updateWindows)
Connections { Connections {
target: root target: root
function onWindowRevisionChanged() { function onWindowRevisionChanged() {
groupedContainer.updateWindows(); Qt.callLater(groupedContainer.updateWindows);
} }
} }
@@ -211,10 +211,7 @@ Singleton {
}); });
backend.windowListChanged.connect(() => { backend.windowListChanged.connect(() => {
// Sync windows when they change
syncWindows(); syncWindows();
// Forward the signal
windowListChanged();
}); });
// Property bindings - use automatic property change signal // Property bindings - use automatic property change signal