-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix clearing custom cursor #74511
Fix clearing custom cursor #74511
Conversation
The logic is the same on other platforms, should it be changed too? Linux: // Reset to default system cursor
if (img[p_shape]) {
cursors[p_shape] = XcursorImageLoadCursor(x11_display, img[p_shape]);
}
CursorShape c = current_cursor;
current_cursor = CURSOR_MAX;
cursor_set_shape(c);
cursors_cache.erase(p_shape); macOS: // Reset to default system cursor.
if (cursors[p_shape] != nullptr) {
cursors[p_shape] = nullptr;
}
cursor_update_shape();
cursors_cache.erase(p_shape); |
Oh probably yeah, will take a look there too, cannot test the effect myself though |
This comment was marked as outdated.
This comment was marked as outdated.
This is where it causes a problem in the Windows implementation: godot/platform/windows/display_server_windows.cpp Lines 1727 to 1731 in 5f2137a
|
6c0f05b
to
a419325
Compare
Updated to include MacOS and Linux as well as I was told the bug affected those as well, cannot test for those platforms myself however. |
Thanks! |
Thank you! |
Fixes #74508
Clearing the cursor in Windows fails because the cache is not cleared before calling to update cursor.