LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Clear X clipboard contents (http://www.linuxquestions.org/questions/programming-9/clear-x-clipboard-contents-521600/)

Wynd 01-22-2007 02:50 AM

Clear X clipboard contents
 
I want to write a small C program to clear the X clipboard contents (or set it to "" or something). I've been looking at the xset code but I can't make out what actually sets the contents. Can someone help me out?

jlliagre 01-22-2007 02:57 AM

Hmm, why are you asking again a question someone already answered to you ?

http://www.linuxquestions.org/questi...d.php?t=521332

If the problem is C++ and QT, have a look at xclip http://people.debian.org/~kims/xclip/

Wynd 01-22-2007 12:12 PM

I'm asking again because those programs are nice but kind of overkill for what I want. I don't need super clipboard managing capabilities, I just want something to clear it.

jlliagre 01-22-2007 03:01 PM

I'd suggest you to run "xclip -i /dev/null" under a debugger, step by step, and keep only the functions and instructions used.


All times are GMT -5. The time now is 12:17 PM.