XGetSelectionOwner

Syntax

Window XGetSelectionOwner(display, selection)
      Display *display;
      Atom selection;

Arguments

display Specifies the connection to the X server.
selection Specifies the selection atom whose owner you want returned.

Description

The XGetSelectionOwner() function returns the window ID associated with the window that currently owns the specified selection. If no selection was specified, the function returns the constant None . If None is returned, there is no owner for the selection.

XGetSelectionOwner() can generate a BadAtom error.

Diagnostics

BadAtom A value for an Atom argument does not name a defined Atom.

See also

XConvertSelection(), XSetSelectionOwner(), "Selections".
Christophe Tronche, ch@tronche.com