mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[PR #800] [MERGED] fix(animation): Move cancel call to Animation struct #1109
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/LGUG2Z/komorebi/pull/800
Author: @thearturca
Created: 5/1/2024
Status: ✅ Merged
Merged: 5/1/2024
Merged by: @LGUG2Z
Base:
feature/animated-move← Head:feature/animated-move📝 Commits (1)
69d412ffix(animation): Move cancel call to Animation struct📊 Changes
2 files changed (+4 additions, -5 deletions)
View changed files
📝
komorebi/src/animation.rs(+4 -0)📝
komorebi/src/window.rs(+0 -5)📄 Description
Only focused window was cancelling its animation because we call cancel in window::set_position and waiting for its cancelling. And because we waiting for cancelling second window is still moving. Second window will stop moving only after the first window. So I moved
cancelcall to Animation struct so its happening in its own thread and doesn't block others animation moves and cancels.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.