tickit_window_take_focus(3)

tickit_window_take_focus3

Control the input focus

Usage

#include <tickit.h>

void tickit_window_take_focus(TickitWindow *win);
bool tickit_window_is_focused(const TickitWindow *win);

Link with -ltickit.

Overview

tickit_window_take_focus() requests that the given window take the input focus, causing respectively the parent to take focus, recursively to the root. The terminal cursor will then take the properties defined by the given window. This results in a TICKIT_EV_FOCUS event being delivered to the previous owner of the focus, as well as to the given window.

tickit_window_is_focused() returns true if the given window currently has the input focus.

Return value

tickit_window_take_focus() returns no value. tickit_window_is_focused() returns a boolean.

Releases

Unchanged in 4 releases since Debian 10 (Buster).

  1. 10–13

From libtickit-dev 0.4.3-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.