From 143135ad2204b77ff37c4f3f1166423d773a9bc7 Mon Sep 17 00:00:00 2001 From: lenemter Date: Wed, 25 Oct 2023 11:13:06 +0900 Subject: [PATCH] Don't create window snapshots if animations are disabled --- src/WindowManager.vala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/WindowManager.vala b/src/WindowManager.vala index ef238956e..35a0101ea 100644 --- a/src/WindowManager.vala +++ b/src/WindowManager.vala @@ -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