From 62432526447b95d2dc61740afaf2ba1c99653adf Mon Sep 17 00:00:00 2001 From: Ilia Bozhinov Date: Sat, 7 Dec 2024 11:03:15 +0100 Subject: [PATCH] squeezimize: remove transformer at the appropriate time --- plugins/animate/squeezimize.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/animate/squeezimize.hpp b/plugins/animate/squeezimize.hpp index 3e73f5289..a5943b4ae 100644 --- a/plugins/animate/squeezimize.hpp +++ b/plugins/animate/squeezimize.hpp @@ -331,6 +331,11 @@ class squeezimize_animation : public animate::animation_base_t node->init_animation(type & WF_ANIMATE_HIDING_ANIMATION); } + ~squeezimize_animation() + { + pop_transformer(this->view); + } + void pop_transformer(wayfire_view view) { view->get_transformed_node()->rem_transformer(squeezimize_transformer_name); @@ -346,7 +351,6 @@ class squeezimize_animation : public animate::animation_base_t auto running = tr->progression.running(); if (!running) { - pop_transformer(view); return false; }