mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:27:43 +00:00
WindowServer: Fix animated cursor not starting after cursor theme switch
Simply setting m_current_cursor in current_cursor_was_reloaded() does not setup the cursor animation, that has to be done in change_cursor(). This also fixes the cursor disappearing after switching from an animated cursor back to a normal one (which was due to it trying to draw a cursor frame that did not exist).
This commit is contained in:
parent
fd641f6f17
commit
c2f94b92c4
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ public:
|
||||||
void invalidate_cursor(bool = false);
|
void invalidate_cursor(bool = false);
|
||||||
Gfx::IntRect current_cursor_rect() const;
|
Gfx::IntRect current_cursor_rect() const;
|
||||||
Cursor const* current_cursor() const { return m_current_cursor; }
|
Cursor const* current_cursor() const { return m_current_cursor; }
|
||||||
void current_cursor_was_reloaded(Cursor const* new_cursor) { m_current_cursor = new_cursor; }
|
void current_cursor_was_reloaded(Cursor const* new_cursor) { change_cursor(new_cursor); }
|
||||||
|
|
||||||
void increment_display_link_count(Badge<ConnectionFromClient>);
|
void increment_display_link_count(Badge<ConnectionFromClient>);
|
||||||
void decrement_display_link_count(Badge<ConnectionFromClient>);
|
void decrement_display_link_count(Badge<ConnectionFromClient>);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue