X11: How does “the” clipboard work?

Not one, not two, but (conventionally) three clipboards - or as many as your applications might agree on. I used to feel quite handy with using and choosing both the PRIMARY and CLIPBOARD selections concurrently…

One final thing to note: At first sight, selections in X11 appear to be simple. I fear, though, that they are almost as complicated as time zones. Even the “standard” utility xclip isn’t strictly ICCCM-compliant and contains the occasional “FIXME”. There are many race conditions and many corner cases.

via

4 Likes

Now, as a web developer, I became jealous… :wink: