Penguin
Annotated edit history of CopyingData version 7, including all changes. View license author blame.
Rev Author # Line
1 PerryLorier 1 Copying data between applications is perhaps one of the most widely misunderstood concept under [X11]. There are two major ways to copy data between applications.in [X11].
2
3 !Copy and Paste
4 This is like MicrosoftWindows / [MacOS] Copy and Paste. First you select the data you want to copy, you select "Copy" from a menu, (or use a keyboard shortcut), move to the new application and select paste. This is /not/ to be confused with Selection and Paste.
5
2 PerryLorier 6 !Drag and Drop / The Primary Selection
3 PerryLorier 7 This is where you select some data, then drag the data from the old application into it's new location and release the mouse button. This is also like Windows and [MacOS].
1 PerryLorier 8
5 PerryLorier 9 However, [X11] has an interesting twist on this. Since dragging data between applications is difficult if one is under the other, or on a different virtual desktop, [X11] also lets you select some data, switch to the new application then paste the primary selection, which is usually bound to the middle mouse button. The primary selection is the most recently selected data. This is not stored in the clipboard, and does __not__ overwrite data that is stored in the copy and paste buffer used above. Users seem to confuse this use with Copy and paste above, where it is a modification on Drag and drop instead.
7 StuartYeates 10
6 JohnMcPherson 11 ----
7 StuartYeates 12
13 See also CutAndPaste and DragAndDrop.
14
15 See the "STDIN Forwarding" section in [SSHNotes] for CopyingData between machines using [SSH].