mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:07:45 +00:00
WindowServer: Only register animations when they're running
This allows us to keep Animation objects around, and the compositor will only use them when the animation is actually running.
This commit is contained in:
parent
fa7f9b0f35
commit
426d1b7410
4 changed files with 36 additions and 26 deletions
|
@ -130,7 +130,6 @@ public:
|
|||
invalidate_screen();
|
||||
}
|
||||
|
||||
void animation_started(Badge<Animation>);
|
||||
void invalidate_occlusions() { m_occlusions_dirty = true; }
|
||||
void overlay_rects_changed();
|
||||
|
||||
|
@ -223,6 +222,7 @@ private:
|
|||
bool m_invalidated_window { false };
|
||||
bool m_invalidated_cursor { false };
|
||||
bool m_overlay_rects_changed { false };
|
||||
bool m_animations_running { false };
|
||||
|
||||
IntrusiveList<&Overlay::m_list_node> m_overlay_list;
|
||||
Gfx::DisjointIntRectSet m_overlay_rects;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue