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

# tickit\_get\_rootwin(3)

obtain the root window from the toplevel instance

## NAME

tickit\_get\_rootwin - obtain the root window from the toplevel instance

## SYNOPSIS

```
#include <tickit.h>

TickitWindow *tickit_get_rootwin(Tickit *t);
```

Link with *-ltickit*.

## DESCRIPTION

**tickit\_get\_rootwin**() obtains the root window instance associated with the toplevel instance, creating it first if necessary. Once created, repeated calls to this function will return the same window.

## RETURN VALUE

**tickit\_get\_rootwin**() returns a window instance pointer.

## SEE ALSO

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