My goal is to copy clipboard data (text or bmp) while clipboard event triggers. Events I am interested in:
- Listen SelectionRequest & SelectionNotify, SelectionClear etc..
- when Event triggers, go to clipboard and read it's data out.
But if I use XSetSelectionOwner
, the event can be capture, but I took over everything, so the original behavior is not happen, for an example, if i use XSetSelectionOwner
and press mouse right key, the "Copy"/"Paste" pop up window will not pop anymore, so I cannot listen what it happen.
Is there a method, i can just "listen" when clipboard event happens, without override it?