0

I'm a newbie to x11. As part of my final project, i have to keep track of all copy paste's in a single machine(from which window to which window) using clipboard in linux X window system. For that i think i need to work with open source x11. But i completely don't know where to start. Which module of x11 should i deal with, to handle the inter-client communication of the x window system. http://www.x.org/releases/X11R7.7/src/

If possible please provide me some good source for developers in inter-client communications of x11. I found so many docs in x.org, but nothing is clearly given regarding the implementation.

santosh kumar
  • 131
  • 2
  • 7
  • The copy & paste action is not implemented by the x11 base. It is application specific. So probably your best approach is to take a closer look at clipboard implementations and extend one to log all actions. – arkascha Sep 16 '13 at 10:16
  • @arkascha yes, my idea is to log all actions of clipboard. But where exactly this clipboard is implemented and what should i refer for that. Can i have the details if you are aware..? – santosh kumar Sep 16 '13 at 10:27
  • The clipboard is an ordinary application you have installed. So the question is: which clipboard are you using, then you have the answer where it is implemented. – arkascha Sep 16 '13 at 10:35

1 Answers1

2

Cut-and-paste in X11 is based on window properties and selections. This is a very good intro to X11 paste buffers/clipboards/selections. Read about associated selections/properties, then use XSelectInput and monitor property/selection changes.

See also:

X11 Get Clipboard Text

Community
  • 1
  • 1
Andrey Sidorov
  • 24,905
  • 4
  • 62
  • 75