Tk\_ClearSelection(3) Tk Library Procedures Tk\_ClearSelection(3)

```

```

# [NAME](#NAME)

Tk\_ClearSelection - Deselect a selection

# [SYNOPSIS](#SYNOPSIS)

```
#include <tk.h>

Tk_ClearSelection(tkwin, selection)
```

# [ARGUMENTS](#ARGUMENTS)

Tk\_Window *tkwin* (in)

The selection will be cleared from the display containing this window.

Atom *selection* (in)

The name of selection to be cleared.

```
    
```

# [DESCRIPTION](#DESCRIPTION)

**Tk\_ClearSelection** cancels the selection specified by the atom *selection* for the display containing *tkwin*. The selection need not be in *tkwin* itself or even in *tkwin*'s application. If there is a window anywhere on *tkwin*'s display that owns *selection*, the window will be notified and the selection will be cleared. If there is no owner for *selection* on the display, then the procedure has no effect.

# [KEYWORDS](#KEYWORDS)

clear, selection

4.0 Tk

---

Document: Tk_ClearSelection(3) from tk 9.1.0-r0 (Chainguard OS)
Source: https://downloads.sourceforge.net/sourceforge/tcl/tk9.1.0-src.tar.gz
