Skip to content

Conversation

@RAOF
Copy link
Contributor

@RAOF RAOF commented Dec 18, 2025

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

  • Tests added and pass
  • Adequate documentation added
  • (optional) Added Screenshots or videos

@RAOF RAOF requested a review from a team as a code owner December 18, 2025 01:07
@RAOF RAOF force-pushed the cursor-observer-observes-cursor-images branch from 2dc5a64 to 0c524cf Compare December 18, 2025 03:14

void mi::CursorObserverMultiplexer::image_set_to(std::shared_ptr<graphics::CursorImage> cursor)
{
for_each_observer(&CursorObserver::image_set_to, std::move(cursor));
Copy link
Contributor

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?

Copy link
Contributor

Choose a reason for hiding this comment

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

Approved or?

Copy link
Contributor

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

RAOF added 2 commits December 19, 2025 15:57
This notifies observers when the cursor image changes.
We've added a virtual member to CursorObserver; that's an ABI break.
@Saviq Saviq force-pushed the cursor-observer-observes-cursor-images branch from 0c524cf to 29bd7de Compare December 19, 2025 14:57
@github-actions
Copy link

TICS Quality Gate

✔️ Passed

mir

Coding Standards: ✔️ Passed

✔️ Condition “No new Coding Standard Violations for level 1, 2, 3 with respect to Previous analysis” passed.

See the results in the TICS Viewer

The following files have been checked for this project
  • src/include/server/mir/input/cursor_controller.h
  • src/include/server/mir/input/cursor_observer_multiplexer.h
  • src/include/server/mir/input/cursor_observer.h
  • src/miral/magnifier.cpp
  • src/server/input/cursor_controller.cpp
  • src/server/input/cursor_observer_multiplexer.cpp
  • src/server/shell/basic_hover_click_transformer.cpp

TICS / TICS / Run TICS analysis

@Saviq Saviq added this pull request to the merge queue Dec 19, 2025
@Saviq Saviq removed this pull request from the merge queue due to a manual request Dec 19, 2025
@Saviq Saviq added this pull request to the merge queue Dec 19, 2025
github-merge-queue bot pushed a commit that referenced this pull request Dec 19, 2025
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
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 19, 2025
@tarek-y-ismail tarek-y-ismail added this pull request to the merge queue Jan 5, 2026
Merged via the queue into main with commit 94315f5 Jan 5, 2026
42 of 43 checks passed
@tarek-y-ismail tarek-y-ismail deleted the cursor-observer-observes-cursor-images branch January 5, 2026 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants