* fix(capture): choose a cursor mode the portal advertises
`uur run` on a Wayland session aborted during capture negotiation:
Error: Portal request didn't succeed: Other
Error: ZBus Error: org.freedesktop.portal.Error.InvalidArgument:
Unavailable cursor mode 2
`negotiate` hardcoded `CursorMode::Embedded` (2). The portal frontend
validates that against the backend's `AvailableCursorModes` and rejects
anything outside it, so any backend that does not offer Embedded could
never start a session. A frontend whose backend property cache is empty
reports `AvailableCursorModes = 0` and then rejects every mode, which is
what made this fail even on backends that do support Embedded: restarting
`xdg-desktop-portal` restored the flags from 0 to 7 and mode 2 was
accepted again.
`preferred_cursor_mode` now reads the advertised flags and picks Embedded,
then Hidden, then Metadata. If none are advertised it fails with an
actionable message naming the portal restart, instead of surfacing a raw
D-Bus error. Older portals that do not implement the v2 property keep the
previous behaviour.
The same hardcoded mode in the RemoteDesktop input path is routed through
the shared helper.
Adds four tests: preference order, subset fallback, the empty-advertisement
regression, and source-type mapping.
* fix(capture): preserve portal errors and report cursor fallback
---------
Co-authored-by: Xuc Pan <[email protected]>