xwayland-satellite/src
En-En 04816e2a36 fix: factor out some unwraps in xstate::selection
Brought to my attention by #252, several `unwrap`s exist on code whose
failure does not justify the termination of the program, so I took some
time to replace them with proper error handling.

The request for TARGETS in `handle_selection_request` used `unwrap`.
Since the code for a failure of responsing to `SelectionRequest` exists,
it simply uses that.

`handle_target_list` now early returns if receiving the
`GetProperty` request fails.

`handle_new_owner` does not update the timestamp for the last selection
on failure.

`set_owner` now returns a `bool` to indicate whether the
`SetSelectionOwner` and `GetSelectionOwner` requests succeeded and
whether they transferred ownership successfully or not. The call spots
have also been modified to not change the `selection_state` if this call
fails.
2025-10-24 18:40:12 -04:00
..
server refactor: fix handle_selection_request 8/7 args 2025-10-24 18:40:12 -04:00
xstate fix: factor out some unwraps in xstate::selection 2025-10-24 18:40:12 -04:00
lib.rs feat: send huge Wayland-to-X selections via INCR 2025-10-24 18:40:12 -04:00
main.rs Add --test-listenfd-support flag 2025-06-07 12:59:01 -04:00