Go to file
Marc-André Lureau 045a6978d6 vdagent: introduce VD_AGENT_CAP_CLIPBOARD_GRAB_SERIAL
When this capability is negoticated by both the client & the agent,
the clipboard grab messages have an associated serial counter.

The serial is reset to 0 upon client connection.

The counter is increment by 1 on each grab message, by both sides.

The sender of the message with the highest serial should be the
clipboard grab owner, and the current session serial should be
updated.

If a lower serial than the current session serial is received, the
grab should be discarded.

Whenever two grabs share the same serial, the one coming from the
client should have a higher priority and the client should gain the
clipboard ownership.

No special treatement is done for the unlikely case of overflowing the
counter. It may temporarily inverse the priority, until both side have
overflown and/or synchronized.

Note: this mechanism isn't aiming at making "the most recent" (as in
time) side gaining the ownership. One side sending subsequent grab
messages earlier will likely take the ownership over a side sending a
single message simultaneously the other way. It only clears the
situation where both side believe that the other is the current
clipboard owner, by having a global ordering and priority in case of
serial conflict.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
2020-03-06 09:24:31 +01:00
spice vdagent: introduce VD_AGENT_CAP_CLIPBOARD_GRAB_SERIAL 2020-03-06 09:24:31 +01:00
.gitlab-ci.yml build-sys: remove codegen leftovers 2019-11-04 15:48:26 +00:00
.gitpublish Add a .gitpublish 2020-02-29 13:22:26 +00:00
AUTHORS Add autoconf and pkg-config setup 2010-02-04 16:47:27 +01:00
autogen.sh Remove codegen 2016-03-10 16:57:08 +01:00
CHANGELOG.md NEWS: prepare for 0.14.0 release 2019-04-12 13:04:38 +00:00
configure.ac build-sys: Provide spec file during build 2019-10-23 12:58:06 +01:00
COPYING Add MIT style COPYING file 2010-02-04 16:23:24 +01:00
git.mk Update git.mk to latest version 2012-09-21 15:48:39 +02:00
Makefile.am build-sys: Provide spec file during build 2019-10-23 12:58:06 +01:00
meson.build meson: generate spice-protocol.spec 2020-03-04 12:35:35 +00:00
README.md README: Add basic info and .md prefix 2019-04-12 13:04:34 +00:00
spice-protocol.pc.in Remove codegen 2016-03-10 16:57:08 +01:00
spice-protocol.spec.in build-sys: Provide spec file during build 2019-10-23 12:58:06 +01:00

spice-protocol

The protocol definition for SPICE project used by:

Please report bugs at Freedesktop's instance of Gitlab