-
Notifications
You must be signed in to change notification settings - Fork 119
input::CursorObserver: Add image_set_to observation
#4579
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
Conversation
2dc5a64 to
0c524cf
Compare
|
|
||
| void mi::CursorObserverMultiplexer::image_set_to(std::shared_ptr<graphics::CursorImage> cursor) | ||
| { | ||
| for_each_observer(&CursorObserver::image_set_to, std::move(cursor)); |
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.
Is there any value to std::move() here?
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.
Approved or?
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.
I approved: I think this is just a distraction
This notifies observers when the cursor image changes.
We've added a virtual member to CursorObserver; that's an ABI break.
0c524cf to
29bd7de
Compare
TICS Quality Gate✔️ Passedmir
|
This allows `CursorObserver`s to monitor when the cursor image changes. Adds a new virtual method to `CursorObserver`, which breaks ABI, so this also bumps the mirserver ABI as that hasn't been done yet this release. ## Checklist - [x] Tests added and pass - [x] Adequate documentation added - [ ] (optional) Added Screenshots or videos
This allows
CursorObservers to monitor when the cursor image changes.Adds a new virtual method to
CursorObserver, which breaks ABI, so this also bumps the mirserver ABI as that hasn't been done yet this release.Checklist