Skip to content
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

Use get_cursor_shape for identifying the cursor shape in CanvasItemEditor #59081

Merged

Conversation

Sauermann
Copy link
Contributor

@Sauermann Sauermann commented Mar 12, 2022

get_cursor_shape() is used in cases where a Control displays different cursors in different areas.
There is no need to set the default cursor shape on every mouse move event.

resolve #70789

Was part of the reason for #58960.

As far as I can tell, this is the last place in the source code, where set_default_cursor_shape() is used during InputEventMouseMove.

Updated 2022-11-03: Fix merge conflict

@Calinou Calinou added this to the 4.0 milestone Mar 12, 2022
@Sauermann Sauermann force-pushed the fix-cursorshape-canvasitemeditor branch from e7e3fe5 to 59730bf Compare April 6, 2022 06:44
@Sauermann Sauermann force-pushed the fix-cursorshape-canvasitemeditor branch from 59730bf to dd35934 Compare September 18, 2022 15:08
…itor

get_cursor_shape() is used in cases where a Control displays different cursors in different areas.
There is no need to set the default cursor shape on every mouse move event.
@Sauermann
Copy link
Contributor Author

Sauermann commented Jan 22, 2023

I have verified, that this PR fixes the bug #70789

Copy link
Contributor

@EricEzaM EricEzaM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes seem sound, although I am not super familiar with this code. I only know what I learned when investigating to make #71856.

As long as all the cursor updates are still happening for the respective interactions, it should be fine.

@akien-mga akien-mga merged commit d065281 into godotengine:master Jan 23, 2023
@akien-mga
Copy link
Member

Thanks!

@Sauermann Sauermann deleted the fix-cursorshape-canvasitemeditor branch January 23, 2023 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using arrow keys with "move mode" tool selected causes 2D editor to lose focus
5 participants