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()
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user