Skip to content

Commit ec56b5f

Browse files
committed
Add comment
1 parent fd2863f commit ec56b5f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/WorkspaceManager.vala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,10 @@ public class Gala.WorkspaceManager : Object {
229229

230230
workspaces_marked_removed.add (workspace);
231231

232+
// We might be here because of a signal emition from the ws machinery (e.g. workspace.window_removed).
233+
// Often the function emitting the signal doesn't take a ref on the ws so if we remove it right
234+
// away it will be freed. But because the function often accesses it after the singal emition this leads
235+
// to warnings and in some cases a crash.
232236
Idle.add (() => remove_workspace (workspace));
233237
}
234238

0 commit comments

Comments
 (0)