ICCCM defined three selections 1)primary 2)secondary 3)clipboard. But in the xlib, xatom.h had defined only XA_PRIMARY and XA_SECONDARY but clipboard has no such atom. So my doubt is whether clipboard is implemented by xlib or has to be implemented by individual applications like primary and secondary ?
If it has to be implemented by individual applications, how different applications would interact with clipboard as in copy from one application's window and paste to another application's window..? How a common buffer is shared by different applications ? Can anybody help with the actual implementation of clipboard in linux..? I had gone through this link . But I dint find much information about the implementation.