[PD-dev] [clipboard get] vs. custom X11 code
Hans-Christoph Steiner
hans at eds.org
Sat Jan 31 00:54:15 CET 2009
I am looking at the copy/paste mechanism and I noticed that for some
reason, on X11 (i.e. GNU/Linux), there is different code for getting
the info to paste. There is this comment:
/* in X windows the selection already went to the
clipboard when it was made; here we "copy" it to our own
buffer
as well, because, annoyingly, the clipboard will usually be
destroyed by the time the user asks to "paste". */
On Win32 and Mac OS X, pd gets the text from Tcl/Tk using [clipboard
get]. It would make things cleaner if everything used the same code.
Is there any reason not to make X11 get the data from Tk, if possible?
.hc
----------------------------------------------------------------------------
Computer science is no more related to the computer than astronomy is
related to the telescope. -Edsger Dykstra
More information about the Pd-dev
mailing list