You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.
It's odd to even get one (I didn't expect to be notified of my own selections), but the second one seems like a bug.
My code linked above is a bit messy still, but serves as a reproduction example. I hope my own logging doesn't get in the way (I was also learning along the way), but it can be reproduced by:
For consistency, clear both selections before starting (copy something onto both on a client and close it).
Run WAYLAND_DEBUG=1 cargo run. 86251b9a works to repro this.
On another client, select some text (so that it's copied into the PRIMARY selection).
clipmon will copy all data from the selection and take the selection itself.
After taking the selection, we get twodata_offer events:
[1031691.210] zwlr_data_control_device_v1@5.data_offer(new id zwlr_data_control_offer_v1@3142568880)
...
[1031691.917] zwlr_data_control_device_v1@5.data_offer(new id zwlr_data_control_offer_v1@3142577344)
I'm writing a clipboard monitor using the
wlr-data-control-unstable-v1
protocol.Whenever I take a selection (e.g.: call
zwlr_data_control_device_v1::set_selection
) I immediately get TWOzwlr_data_control_device_v1::data_offer
events.It's odd to even get one (I didn't expect to be notified of my own selections), but the second one seems like a bug.
My code linked above is a bit messy still, but serves as a reproduction example. I hope my own logging doesn't get in the way (I was also learning along the way), but it can be reproduced by:
WAYLAND_DEBUG=1 cargo run
. 86251b9a works to repro this.clipmon
will copy all data from the selection and take the selection itself.data_offer
events:They are also both for the primary selection:
wlroots has migrated to gitlab.freedesktop.org. This issue has been moved to:
https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3296
The text was updated successfully, but these errors were encountered: