Windows Clipboard integration

The X Window System uses its own clipboard system that is distinct from the clipboard system used by Windows. Copying and pasting text between these two clipboard systems requires a clipboard integration program that watches for updates to either clipboard and copies data between them when either one is updated. Cygwin/X has an internal clipboard integration program that is enabled by default.

The clipboard integration monitors the X PRIMARY and CLIBPOARD selections for changes in ownership, and makes the contents of the most recent one to change available to paste from the Windows clipboard. It also monitors the contents of the Windows clipboard for changes, taking ownership of the PRIMARY and CLIPBOARD selections, and making the contents of the Windows clipboard available in them.

Note: Some X clients, notably ones written in Tcl/Tk, do not re-assert ownership of the PRIMARY selection or update it's timestamp when it's contents change, which currently prevents the clipboard integration program from correctly noticing that the PRIMARY selection's contents have changed.

See the Section called Command line parameters in Chapter 3 for more information on the -[no]clipboard command-line parameter.