Function

Gdkselection_owner_get_for_display

since: 2.2

Declaration [src]

GdkWindow*
gdk_selection_owner_get_for_display (
  GdkDisplay* display,
  GdkAtom selection
)

Description [src]

Determine the owner of the given selection.

Note that the return value may be owned by a different process if a foreign window was previously created for that window, but a new foreign window will never be created by this call.

Available since: 2.2

Parameters

display

Type: GdkDisplay

A GdkDisplay.

The data is owned by the caller of the function.
selection

Type: GdkAtom

An atom indentifying a selection.

Return value

Type: GdkWindow

If there is a selection owner for this window, and it is a window known to the current process, the GdkWindow that owns the selection, otherwise NULL.

The data is owned by the called function.
The return value can be NULL.