Skip to content

Commit

Permalink
Fix crash on disabled animations
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 committed Dec 24, 2024
1 parent 494378a commit d57a3d3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/WindowManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -1564,7 +1564,7 @@ namespace Gala {
public override void destroy (Meta.WindowActor actor) {
unowned var window = actor.get_meta_window ();

actor.destroy.connect (() => {
actor.destroy.connect (() => Idle.add (() => {
if (ws_assoc.contains (window)) {
var old_ws_index = ws_assoc[window];
var old_ws = get_display ().get_workspace_manager ().get_workspace_by_index (old_ws_index);
Expand All @@ -1573,7 +1573,9 @@ namespace Gala {
old_ws.activate (Meta.CURRENT_TIME);
}
}
});

return Source.REMOVE;
}));

actor.remove_all_transitions ();

Expand Down

0 comments on commit d57a3d3

Please sign in to comment.