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

Allow setting the cursor in the update method. #1361

Merged
merged 2 commits into from
Nov 3, 2020
Merged

Allow setting the cursor in the update method. #1361

merged 2 commits into from
Nov 3, 2020

Conversation

jneem
Copy link
Collaborator

@jneem jneem commented Oct 30, 2020

Motivation is that I have a widget that needs to change its cursor in response to the app data, but the data can get changed by keyboard shortcuts that don't cause an event to the relevant widget (e.g. keyboard shortcuts for menu entries).

Copy link
Member

@cmyr cmyr left a comment

Choose a reason for hiding this comment

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

Sounds reasonable. Ultimately I don't love how we handle custom cursors, but it works for now.

Edit to clarify: what I don't like is how we set it on every event, which feels inelegant. It would be nice if a widget could just indicate what cursor should be used when it is hot, and then it could override this as needed? or something?

@JAicewizard
Copy link
Contributor

yeah having to set it explicitly every event seems off and confusing for newcomers as well.

@luleyleo luleyleo added the S-ready PR is ready to merge label Oct 31, 2020
@jneem
Copy link
Collaborator Author

jneem commented Nov 3, 2020

Yeah, that makes total sense. I'm going to go ahead and push this, though, and I'll open an issue for the other thing.

@jneem jneem merged commit 729754c into linebender:master Nov 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-ready PR is ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants