
Generic
Object
Selection
Owner
(Selection)
Figure 18-2. Selection owner class hierarchy
If a selection uses a conversion procedure to convert the selection, then the attribute
SEL_CONVERT_PROC specifies the name of the conversion procedure. Section 18.2.4, “Con-
verting the Selection,” describes the conversion procedure. The selection is acquired by set-
ting SEL_OWN to TRUE.
xv_set(sel_owner, SEL_CONVERT_PROC, convert_proc,
SEL_OWN, TRUE,
NULL);
By default, the selection is associated with the primary rank (XA_PRIMARY). If your selection
needs to use another rank, use either SEL_RANK or SEL_RANK_NAME to specify the rank.
xv_set(sel_owner, SEL_CONVERT_PROC, convert_proc,
SEL_RANK_NAME, "SECONDARY",
SEL_OWN, TRUE,
NULL);
SEL_RANK
takes an atom as an argument. SEL_RANK_NAME takes a string as an argument and
creates an atom from the string; if the atom already exists, it is re-used. In X terms, this is
called interning an atom. (See the description for XInternAtom in the Xlib Reference
Manual.)
After an application makes a request and a selection owner responds to that request, the
selection owner waits for notification that the requestor received the data. The maximum
time that the selection owner will wait for an acknowledgement from the selection requestor
is set with SEL_TIMEOUT_VALUE. This value is specified in seconds. If this value is
exceeded, the selection is invalid. This value does not limit how long ...