1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:07:46 +00:00

WindowServer: Update compositor reference to cursor on reload

When we reload a cursor we should make sure the compositor has a
valid reference to the updated cursor.
This commit is contained in:
Tom 2021-06-19 12:21:01 -06:00 committed by Andreas Kling
parent f232cb8efe
commit 14fe7283e1
2 changed files with 27 additions and 16 deletions

View file

@ -48,6 +48,8 @@ public:
void invalidate_cursor(bool = false);
Gfx::IntRect current_cursor_rect() const;
const Cursor* current_cursor() const { return m_current_cursor; }
void current_cursor_was_reloaded(const Cursor* new_cursor) { m_current_cursor = new_cursor; }
void increment_display_link_count(Badge<ClientConnection>);
void decrement_display_link_count(Badge<ClientConnection>);