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()
onWorkspaceModelChanged: updateWindows()
// Deferred to avoid re-entrant incubation: when localWorkspaces.append()
Component.onCompleted: Qt.callLater(updateWindows)
onWorkspaceModelChanged: Qt.callLater(updateWindows)
Connections {
target: root
function onWindowRevisionChanged() {
groupedContainer.updateWindows();
Qt.callLater(groupedContainer.updateWindows);
}
}
@@ -211,10 +211,7 @@ Singleton {
});
backend.windowListChanged.connect(() => {
// Sync windows when they change
syncWindows();
// Forward the signal
windowListChanged();
});
// Property bindings - use automatic property change signal