Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XSetSelectionOwner(3X) — A/UX 3.0.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought




XSetSelectionOwner(3X) XSetSelectionOwner(3X)
NAME XSetSelectionOwner, XGetSelectionOwner, XConvertSelection - manipulate the window selection SYNOPSIS XSetSelectionOwner (display, selection, owner, time) Display *display; Atom selection; Window owner; Time time; Window XGetSelectionOwner (display, selection) Display *display; Atom selection; XConvertSelection (display, selection, target, property, requester, time) Display *display; Atom selection,target; Atom property; Window requester; Time time; DESCRIPTION The XSetSelectionOwner function changes the owner and last change time for the specified selection and has no effect if the specified time is earlier than the current last-change time of the specified selection or is later than the current X server time. Otherwise, the last-change time is set to the specified time, with CurrentTime replaced by the current server time. If the owner window is specified as None, the owner of the selection becomes None (that is, no owner). Otherwise, the owner of the selection becomes the client ex- ecuting the request. If the new owner (whether a client or None) is not the same as the current owner of the selection and the current owner is not None, the current owner is sent a SelectionClear event. If the client that is the owner of a selection is later terminated (that is, its connection is closed) or if the owner window it has specified in the request is later destroyed, the owner of the selection automatically reverts to None, but the last-change time is not affected. The selection atom is uninterpreted by the X server. The XGetSelectionOwner function returns the window ID asso- ciated with the window that currently owns the specified selection, as reported in SelectionRequest and SelectionClear events. Selections are global to the X server. If no selection was specified, XGetSelectionOwner returns the constant None. If XGetSelectionOwner returns None, there is no owner for the selection. November, 1990 1



XSetSelectionOwner(3X) XSetSelectionOwner(3X)
The XConvertSelection function requests that the specified selection be converted to the specified target type. If the specified selection has an owner, a SelectionRequest event is sent to that owner by the server. If no owner for the specified selection exists, the X server generates a Selec- tionNotify event to the requester with property None. The arguments are passed on unchanged in either event. There are two predefined selection atoms: PRIMARY and SECONDARY. Arguments These functions accept the following arguments: display Specifies the connection to the X server. owner Specifies the owner of the specified selection atom. You can pass a window ID or None. property Specifies the property atom. You can also pass None. requester Specifies the requester. selection Specifies the selection atom. target Specifies the target atom. time Specifies the time. You can pass either a times- tamp, expressed in milliseconds, or CurrentTime. ERRORS BadAtom A value for an Atom argument does not name a defined atom. BadWindow A value for a Window argument does not name a de- fined window. The XSetSelectionOwner and XConvertSelection functions can generate BadAtom and BadWindow errors. The XGetSelectionOwner function can generate a BadAtom error. SEE ALSO Xlib - C Language Interface 2 November, 1990

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026