mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
fix(workspace): more defer Workspace compositor signal handlers with Qt.callLater to avoid SIGSEGV
This commit is contained in:
@@ -293,18 +293,18 @@ Item {
|
||||
Connections {
|
||||
target: CompositorService
|
||||
function onWorkspacesChanged() {
|
||||
refreshWorkspaces();
|
||||
Qt.callLater(refreshWorkspaces);
|
||||
}
|
||||
function onWindowListChanged() {
|
||||
if (appVisible || showLabelsOnlyWhenOccupied) {
|
||||
root.windowRevision++;
|
||||
refreshWorkspaces();
|
||||
Qt.callLater(refreshWorkspaces);
|
||||
}
|
||||
}
|
||||
function onActiveWindowChanged() {
|
||||
if (appVisible) {
|
||||
root.windowRevision++;
|
||||
refreshWorkspaces();
|
||||
Qt.callLater(refreshWorkspaces);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user