---
name: "tickit_window_parent"
section: "3"
platform: "linux"
package: "libtickit-dev"
version: "0.4.3-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/tickit_window_parent"
---

# tickit\_window\_parent(3)

query the ancestry of a window

## NAME

tickit\_window\_parent, tickit\_window\_root - query the ancestry of a window

## SYNOPSIS

```
#include <tickit.h>

TickitWindow *tickit_window_parent(const TickitWindow *win);
TickitWindow *tickit_window_root(const TickitWindow *win);
```

Link with *-ltickit*.

## DESCRIPTION

**tickit\_window\_parent**() returns a pointer to the given window's immediate parent instance (i.e. the one it was created from), or **NULL** if called on a root window instance.

**tickit\_window\_root**() returns a pointer to the given window's ultimate root window instance. This may be the window itself, if called on a root window instance.

## RETURN VALUE

**tickit\_window\_parent**() and **tickit\_window\_root**() return pointers to window instances.

## SEE ALSO

[**tickit\_window\_new**(3)](/tickit_window_new/3.md), [**tickit\_window**(7)](/tickit_window/7.md), [**tickit**(7)](/tickit/7.md)
