X Window Selection
Selections, cut buffers, and drag-and-drop are the mechanisms used in the X Window System to allow a user to transfer data from a window to another. Selections and cut buffer are typically used when a user selects text or some other data in a window and pastes in another one. Drag-and-drop is used when a user selects something in a window, then clicks on the selection and drags it into another window.
Since the two windows may be handled by two different applications, these mechanisms require two different clients connected with the same X server to exchange data. The X Window System core protocol includes some requests and events that are specific to selection exchange, but the transfer is mainly done using event sending and window properties, which are not specific to selection transfer.
Different types of data can be transferred: it is usually text, but can also be an image, a number, a list of objects, etc. In the following, only the case of text is considered.
Read more about X Window Selection: Active and Passive Selections, Selections, Clipboard, Cut Buffers, XDND, Programs
Famous quotes containing the words window and/or selection:
“O Mary, at thy window be,
It is the wishd, the trysted hour!”
—Robert Burns (17591796)
“Judge Ginsburgs selection should be a modelchosen on merit and not ideology, despite some naysaying, with little advance publicity. Her treatment could begin to overturn a terrible precedent: that is, that the most terrifying sentence among the accomplished in America has become, Honeythe White House is on the phone.”
—Anna Quindlen (b. 1952)