Unix and Linux Discussions Tagged with owner |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
5 |
5,639 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
8,853 |
Solaris |
|
|
|
5 |
2,978 |
Shell Programming and Scripting |
|
|
|
5 |
6,561 |
Shell Programming and Scripting |
|
|
|
1 |
2,600 |
UNIX for Dummies Questions & Answers |
|
|
|
10 |
6,875 |
Shell Programming and Scripting |
|
|
|
13 |
17,461 |
Cybersecurity |
|
|
|
1 |
8,160 |
Solaris |
|
|
|
4 |
3,808 |
Programming |
|
|
|
10 |
10,711 |
Solaris |
|
|
|
0 |
1,375 |
UNIX and Linux RSS News |
|
|
|
3 |
9,704 |
Shell Programming and Scripting |
|
|
|
4 |
20,155 |
Shell Programming and Scripting |
|
|
|
1 |
5,945 |
UNIX for Dummies Questions & Answers |
|
|
|
19 |
18,429 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
10,268 |
Cybersecurity |
|
|
|
1 |
9,053 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
5,113 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,161 |
Cybersecurity |
|
|
|
2 |
18,067 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
10,872 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,497 |
Programming |
|
|
|
2 |
3,439 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
35,594 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
8,265 |
UNIX for Advanced & Expert Users |
|
|
|
5 |
17,532 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
6,135 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,803 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
77,422 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
13,933 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
11,586 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
36,956 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,808 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,255 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
5,096 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
250,586 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
4,531 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,050 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,190 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
7,510 |
UNIX for Dummies Questions & Answers |
XSetSelectionOwner() XSetSelectionOwner()
Name
XSetSelectionOwner - set the owner of a selection.
Synopsis
XSetSelectionOwner(display, selection, owner, time)
Display *display;
Atom selection;
Window owner;
Time time;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
selection Specifies the selection atom. Predefined atoms are XA_PRIMARY and XA_SECONDARY.
owner Specifies the desired owner of the specified selection atom. This value is either a window ID or None.
time Specifies the time when the selection should take place. Pass either a timestamp, expressed in milliseconds, or the constant
CurrentTime.
Description
XSetSelectionOwner() sets the owner and last-change time of a selection property. This should be called by an application that supports
cutting and pasting between windows (or at least cutting), when the user has made a selection of any kind of text, graphics, or data. This
makes the information available so that other applications can request the data from the new selection owner using XConvertSelection(),
which generates a SelectionRequest event specifying the desired type and format of the data. Then the selection owner sends a SelectionNo-
tify using XSendEvent(), which notes that the information is stored in the selection property in the desired format or indicates that it
couldn't do the conversion to the desired type.
If owner is specified as None, then this client is giving up ownership voluntarily. Otherwise, the new owner is the client executing the
request.
If the new selection owner is not the same client as the old owner, and the new owner is a window, then the old owner is sent a Selection-
Clear event. This indicates to the old owner that the selection should be unhighlighted.
If the selection owner window is later destroyed, the owner of the selection automatically reverts to None.
The value you pass to the time argument must be no earlier than the last-change time of the specified selection, and no later than the cur-
rent time, or the selection is not affected. The new last-change time recorded is the specified time, with CurrentTime replaced by the
current server time. If the X server reverts a selection owner to None, the last-change time is not affected.
For more information on selections, see Volume One, Chapter 12, Interclient Communication.
Errors
BadAtom
BadWindow
See Also
XConvertSelection(), XGetSelectionOwner().
Xlib - Selections XSetSelectionOwner()