mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Merge branch 'noctalia-dev:main' into pr/networking-refactor-pt2
This commit is contained in:
@@ -245,18 +245,20 @@ Item {
|
||||
Settings.data.dock.pinnedApps = pinnedApps;
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
refreshWorkspaces();
|
||||
}
|
||||
// Deferred to next event-loop tick via Qt.callLater to avoid re-entrant incubation:
|
||||
// Calling localWorkspaces.append() synchronously there causes the inner Repeater to
|
||||
// create WorkspacePill delegates mid-finalization, corrupting the V4 heap
|
||||
// (SIGSEGV in QV4::Object::insertMember).
|
||||
Component.onCompleted: Qt.callLater(refreshWorkspaces)
|
||||
|
||||
Component.onDestruction: {
|
||||
root.isDestroying = true;
|
||||
}
|
||||
|
||||
onScreenChanged: refreshWorkspaces()
|
||||
onScreenNameChanged: refreshWorkspaces()
|
||||
onHideUnoccupiedChanged: refreshWorkspaces()
|
||||
onShowApplicationsChanged: refreshWorkspaces()
|
||||
onScreenChanged: Qt.callLater(refreshWorkspaces)
|
||||
onScreenNameChanged: Qt.callLater(refreshWorkspaces)
|
||||
onHideUnoccupiedChanged: Qt.callLater(refreshWorkspaces)
|
||||
onShowApplicationsChanged: Qt.callLater(refreshWorkspaces)
|
||||
|
||||
Connections {
|
||||
target: CompositorService
|
||||
|
||||
Reference in New Issue
Block a user