Skip to content

Commit

Permalink
Don't create window snapshots if animations are disabled (#1778)
Browse files Browse the repository at this point in the history
  • Loading branch information
lenemter authored Oct 25, 2023
1 parent 6cc8360 commit 91d70aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/WindowManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,9 @@ namespace Gala {
which_change = which_change_local;
old_rect_size_change = old_frame_rect;

latest_window_snapshot = Utils.get_window_actor_snapshot (actor, old_frame_rect);
if (enable_animations) {
latest_window_snapshot = Utils.get_window_actor_snapshot (actor, old_frame_rect);
}
}

// size_changed gets called after frame_rect has updated
Expand Down

0 comments on commit 91d70aa

Please sign in to comment.