Skip to content

Commit

Permalink
squeezimize: remove transformer at the appropriate time
Browse files Browse the repository at this point in the history
  • Loading branch information
ammen99 committed Dec 7, 2024
1 parent 7b44ec6 commit 6243252
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/animate/squeezimize.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -346,7 +351,6 @@ class squeezimize_animation : public animate::animation_base_t
auto running = tr->progression.running();
if (!running)
{
pop_transformer(view);
return false;
}

Expand Down

0 comments on commit 6243252

Please sign in to comment.