Tk\_RestackWindow(3) Tk Library Procedures Tk\_RestackWindow(3)

```

```

# [NAME](#NAME)

Tk\_RestackWindow - Change a window's position in the stacking order

# [SYNOPSIS](#SYNOPSIS)

```
#include <tk.h>

int
Tk_RestackWindow(tkwin, aboveBelow, other)
```

# [ARGUMENTS](#ARGUMENTS)

Tk\_Window *tkwin* (in)

Token for window to restack.

int *aboveBelow* (in)

Indicates new position of *tkwin* relative to *other*; must be **Above** or **Below**.

Tk\_Window *other* (in)

*Tkwin* will be repositioned just above or below this window. Must be a sibling of *tkwin* or a descendant of a sibling. If NULL then *tkwin* is restacked above or below all siblings.

```
    
```

# [DESCRIPTION](#DESCRIPTION)

**Tk\_RestackWindow** changes the stacking order of *window* relative to its siblings. If *other* is specified as NULL then *window* is repositioned at the top or bottom of its stacking order, depending on whether *aboveBelow* is **Above** or **Below**. If *other* has a non-NULL value then *window* is repositioned just above or below *other*.

The *aboveBelow* argument must have one of the symbolic values **Above** or **Below**. Both of these values are defined by the include file &lt;X11/Xlib.h&gt;.

# [KEYWORDS](#KEYWORDS)

above, below, obscure, stacking order

Tk

---

Document: Tk_RestackWindow(3) from tk 9.0.4-r2 (Chainguard OS)
Source: https://downloads.sourceforge.net/sourceforge/tcl/tk9.0.4-src.tar.gz
