mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
fix(workspace): potential fix for SIGSEGV caused by re-entrant incubation
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user