Function

Gdk-3.0Gdkselection_owner_set_for_displaySince 2.2

  • Sets the Gdk.Window owner as the current owner of the selection selection.

    Parameters

    • display: Gdk.Display
    • owner: Gdk.Window

      a Gdk.Window or null to indicate that the owner for the given should be unset

    • selection: Gdk.Atom

      an atom identifying a selection

    • time_: number

      timestamp to use when setting the selection If this is older than the timestamp given last time the owner was set for the given selection, the request will be ignored

    • send_event: boolean

      if true, and the new owner is different from the current owner, the current owner will be sent a SelectionClear event

    Returns boolean

    true if the selection owner was successfully changed to owner, otherwise false.

    2.2