diff options
author | MacDue <macdue@dueutil.tech> | 2022-06-10 16:29:57 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-06-10 20:51:55 +0100 |
commit | c2f94b92c4b22b581256a34cb8e86a61ea04a92b (patch) | |
tree | fa47b6a6cc42b651ff677a0d4f2658ae2c19f3ee | |
parent | fd641f6f1760ae96564b4d3fba0fd9ee147502d7 (diff) | |
download | serenity-c2f94b92c4b22b581256a34cb8e86a61ea04a92b.zip |
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).
-rw-r--r-- | Userland/Services/WindowServer/Compositor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/WindowServer/Compositor.h b/Userland/Services/WindowServer/Compositor.h index d779f5d15f..e23268910a 100644 --- a/Userland/Services/WindowServer/Compositor.h +++ b/Userland/Services/WindowServer/Compositor.h @@ -111,7 +111,7 @@ public: void invalidate_cursor(bool = false); Gfx::IntRect current_cursor_rect() const; 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 decrement_display_link_count(Badge<ConnectionFromClient>); |