mirror of
https://gitlab.freedesktop.org/wlroots/wlr-protocols.git
synced 2025-12-20 04:30:05 +01:00
read-only mirror of https://gitlab.freedesktop.org/wlroots/wlr-protocols
A typically clipboard manager works as follows: - On a new clipboard, we copy any text - If the clipboard becomes empty (typically because a client died), we paste our previously copied text Our race happens as follows: first copy: - client creates a wl_data_offer - compositors sees it forwards it clipboard manager which copies the text... second copy: - client deletes its old wl_data_offer before creating a new one - compositor forwards this update to clipboard manager - clipboard manager knows the clipboard is empty and starts its operation to prevent an empty clipboard - client creates a new wl_data_offer and calls set_selection - clipboard manager creates a new wlr_data_offer (with the old clipboard text) and calls set_selection The compositor can get these last two in any order, and we end up replacing our new clipboard content with out-of-date previous clipboard contents. This patch adds a serial number that can be used when a set_selection is used in repsonse to a selection event. |
||
|---|---|---|
| unstable | ||
| .build.yml | ||
| .editorconfig | ||
| check.sh | ||
| Makefile | ||
| README.md | ||
| wlr-protocols.pc.in | ||
wlr-protocols
Wayland protocols designed for use in wlroots (and other compositors).
Submitting changes to existing protocols
Please submit a pull request on GitHub.
Submitting new protocols
New protocols should not be submitted to wlr-protocols. Instead, submit them to wayland-protocols.