12.07.2015 Views

Xlib − C Language X Interface

Xlib − C Language X Interface

Xlib − C Language X Interface

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Xlib</strong> − C LibraryX11, Release 6.7 DRAFTWindow XGetSelectionOwner (display, selection)Display *display;Atom selection;displayselectionSpecifies the connection to the X server.Specifies the selection atom whose owner you want returned.The XGetSelectionOwner function returns the window IDassociated with the window that currentlyowns the specified selection. If no selection was specified, the function returns the constantNone. If None is returned, there is no owner for the selection.XGetSelectionOwner can generate a BadAtom error.To request conversion of a selection, use XConvertSelection.XConvertSelection (display, selection, target, property, requestor, time)Display *display;Atom selection, target;Atom property;Window requestor;Time time;displayselectiontargetpropertyrequestortimeSpecifies the connection to the X server.Specifies the selection atom.Specifies the target atom.Specifies the property name. Youalso can pass None.Specifies the requestor.Specifies the time. Youcan pass either a timestamp or CurrentTime.XConvertSelection requests that the specified selection be converted to the specified target type:• Ifthe specified selection has an owner, the X server sends a SelectionRequest event to thatowner.• Ifnoowner for the specified selection exists, the X server generates a SelectionNotifyevent to the requestor with property None.The arguments are passed on unchanged in either of the events. There are two predefined selectionatoms: PRIMARY and SECONDARY.XConvertSelection can generate BadAtom and BadWindow errors.72

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!