Skip to content

Fix custom Slint cursor display on Windows#16

Merged
ilmai merged 1 commit into
ilmai:mainfrom
emuell:fix/windows-cursor
May 25, 2026
Merged

Fix custom Slint cursor display on Windows#16
ilmai merged 1 commit into
ilmai:mainfrom
emuell:fix/windows-cursor

Conversation

@emuell

@emuell emuell commented May 22, 2026

Copy link
Copy Markdown
Contributor

Need to handle WM_CURSOR in OsWindow to avoid that parent windows get a chance to restore the cursor to the default cursor after a custom cursor got set via SetCursor.

To replicate: open the gain plugin example (VST3 or standalone) before this change on Windows. The custom Resize cursor on the gain text will only briefly show (if at all) and then will revert to the default cursor again. After this fix it should stay a resize cursor as long as the gain text is hovered.

Need to handle WM_CURSOR in OsWindow to avoid that parent windows get a chance to restore the cursor
to the default cursor right after a custom cursor got set
@ilmai ilmai merged commit 8fa02f7 into ilmai:main May 25, 2026
3 checks passed
@emuell emuell deleted the fix/windows-cursor branch May 25, 2026 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants