mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-16 20:43:48 -07:00
animationmgr: avoid redundant ticks
This commit is contained in:
@@ -13,6 +13,8 @@ class CAnimationManager {
|
||||
CAnimationManager();
|
||||
|
||||
void tick();
|
||||
bool shouldTickForNext();
|
||||
void scheduleTick();
|
||||
void addBezierWithName(std::string, const Vector2D&, const Vector2D&);
|
||||
void removeAllBeziers();
|
||||
|
||||
@@ -42,6 +44,8 @@ class CAnimationManager {
|
||||
|
||||
std::unordered_map<std::string, CBezierCurve> m_mBezierCurves;
|
||||
|
||||
bool m_bTickScheduled = false;
|
||||
|
||||
// Anim stuff
|
||||
void animationPopin(CWindow*, bool close = false, float minPerc = 0.f);
|
||||
void animationSlide(CWindow*, std::string force = "", bool close = false);
|
||||
|
Reference in New Issue
Block a user