-
Notifications
You must be signed in to change notification settings - Fork 904
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
Accepts first mouse #2457
Accepts first mouse #2457
Conversation
CI is failing with a type mismatch between Edit: I'm running on arm64 where it seems |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, thanks!
If you don't mind, I think I'll wait with this 'till #2427 is done, at which point the bool
stuff should also be easier.
I don't mind. But it's sorted out – at least, the CI is happy :) |
I've updated the branch. The new I think the tests failed because of GitHub; one just says |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies, I should have been more clear, I wasn't actually ready with #2427 yet.
Could I get you to merge the latest master
, and then move accepts_first_mouse
from ViewState
to WinitView
(would do it myself, but I don't have write access to your branch).
No worries! I'm not used to working with Rust or Objective-C and it's fun to follow along while you refactor the internals :) I hope I got it right with storing the flag on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wonderful, only small nits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
* MacOS: set value for `accepts_first_mouse` * Update CHANGELOG and FEATURES * Field doesn't need to be public * Convert `bool` to `BOOL` * Fix formatting * Move flag from window state to view instance * Feedback from PR * Fix changelog location
I had to fix the changelog entry beforehand but still didn't seem to have access to the branch, idk. maybe I'm doing something wrong, so ended up merging this manually in 48b843e instead. |
@madsmtm thanks for seeing this through! |
CHANGELOG.md
if knowledge of this change could be valuable to usersCreated or updated an example program if it would help users understand this functionalityQuoting #1882 (review):
The use case is for Neovide (neovide/neovide#1343), so it behaves more like a native MacOS application.